summaryrefslogtreecommitdiffstats
path: root/desktop/gdm/gdm.wrap
diff options
context:
space:
mode:
Diffstat (limited to 'desktop/gdm/gdm.wrap')
-rw-r--r--desktop/gdm/gdm.wrap11
1 files changed, 11 insertions, 0 deletions
diff --git a/desktop/gdm/gdm.wrap b/desktop/gdm/gdm.wrap
new file mode 100644
index 0000000000..48aca9381b
--- /dev/null
+++ b/desktop/gdm/gdm.wrap
@@ -0,0 +1,11 @@
+#!/bin/bash
+#
+# GDM Wrapper Script
+#
+# Slackware starts GDM with "/usr/sbin/gdm -nodaemon", which is invalid and
+# crashes GDM and runlevel 4. Since its not being fixed, lets sanitize that
+# ourselves with a wrapper script.
+
+sanitized_opts="$(echo $@ | sed 's/-nodaemon//g')"
+exec /usr/sbin/gdm-bin "$sanitized_opts"
+