summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorGeorge Lebl <jirka@5z.com>2001-04-25 01:53:58 +0000
committerGeorge Lebl <jirka@src.gnome.org>2001-04-25 01:53:58 +0000
commit5a4e1bb8b06f85be11bc3bd7dedbace728426164 (patch)
tree9c3c5b01f228cbee8dacf648a5f14f2f1a4b3d95 /config
parent51f3055d3e846cc0980f63e2a618a8a6b909bb8f (diff)
downloadgdm-5a4e1bb8b06f85be11bc3bd7dedbace728426164.tar.gz
Apply small bits of the ximian patches. Pre/PostSession scripts only run
Tue Apr 24 18:45:55 2001 George Lebl <jirka@5z.com> * config/PostSession, config/PreSession, gui/gdmlogin.c: Apply small bits of the ximian patches. Pre/PostSession scripts only run sessreg if it exists. and gdmlogin selects the Gnome session if no "default" exists.
Diffstat (limited to 'config')
-rwxr-xr-xconfig/PostSession5
-rwxr-xr-xconfig/PreSession5
2 files changed, 6 insertions, 4 deletions
diff --git a/config/PostSession b/config/PostSession
index 037ad72c..b047fd84 100755
--- a/config/PostSession
+++ b/config/PostSession
@@ -1,3 +1,4 @@
#!/bin/sh
-/usr/bin/X11/sessreg -d -w /var/log/wtmp -u /var/run/utmp -l $DISPLAY $USER
-
+if [ -x /usr/bin/X11/sessreg ]; then
+ /usr/bin/X11/sessreg -d -w /var/log/wtmp -u /var/run/utmp -l $DISPLAY $USER
+fi
diff --git a/config/PreSession b/config/PreSession
index 4015aaed..03eb26b8 100755
--- a/config/PreSession
+++ b/config/PreSession
@@ -1,3 +1,4 @@
#!/bin/sh
-/usr/bin/X11/sessreg -a -w /var/log/wtmp -u /var/run/utmp -l $DISPLAY $USER
-
+if [ -x /usr/bin/X11/sessreg ]; then
+ /usr/bin/X11/sessreg -a -w /var/log/wtmp -u /var/run/utmp -l $DISPLAY $USER
+fi