summaryrefslogtreecommitdiffstats
path: root/desktop/gdm/gdm.wrap
blob: 48aca9381badb900720ab2db56c72c428b788071 (plain)
#!/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"