summaryrefslogblamecommitdiffstats
path: root/desktop/gdm/gdm.wrap
blob: 48aca9381badb900720ab2db56c72c428b788071 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
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"