summaryrefslogtreecommitdiff
path: root/data/PreSession.in
diff options
context:
space:
mode:
authorRay Strode <rstrode@redhat.com>2008-12-08 16:09:50 +0000
committerRay Strode <halfline@src.gnome.org>2008-12-08 16:09:50 +0000
commit81ecd7acd8f01d999dae55c6945dfd972bab3124 (patch)
treed1ce2fa936c48f77be194fe67824515b5a9dea6d /data/PreSession.in
parentad7e0b422b31a7b000017591b4987fc45e1d5616 (diff)
downloadgdm-81ecd7acd8f01d999dae55c6945dfd972bab3124.tar.gz
gut functions, since they were redundant with what we do in code now (bug
2008-12-08 Ray Strode <rstrode@redhat.com> * data/{PreSession,PostSession}.in: gut functions, since they were redundant with what we do in code now (bug 563550) * data/Init.in: apply patch from Pacho Ramos to quote shell conditionals better (bug 563550). svn path=/trunk/; revision=6625
Diffstat (limited to 'data/PreSession.in')
-rwxr-xr-xdata/PreSession.in31
1 files changed, 0 insertions, 31 deletions
diff --git a/data/PreSession.in b/data/PreSession.in
index 8e48f793..6f31d3d9 100755
--- a/data/PreSession.in
+++ b/data/PreSession.in
@@ -7,34 +7,3 @@
# Note that output goes into the .xsession-errors file for easy debugging
#
PATH="@X_PATH@:$PATH:/bin:/usr/bin"
-OLD_IFS=$IFS
-
-gdmwhich () {
- COMMAND="$1"
- OUTPUT=
- IFS=:
- for dir in $PATH
- do
- if test -x "$dir/$COMMAND" ; then
- if test "x$OUTPUT" = "x" ; then
- OUTPUT="$dir/$COMMAND"
- fi
- fi
- done
- IFS=$OLD_IFS
- echo "$OUTPUT"
-}
-
-SESSREG=`gdmwhich sessreg`
-if [ "x$SESSREG" != "x" ] ; then
- # some output for easy debugging
- echo "$0: Registering your session with wtmp and utmp"
- echo "$0: running: $SESSREG -a -w /var/log/wtmp -u /var/run/utmp -x \"$X_SERVERS\" -h \"$REMOTE_HOST\" -l \"$DISPLAY\" \"$USER\""
-
- exec "$SESSREG" -a -w /var/log/wtmp -u /var/run/utmp -x "$X_SERVERS" -h "$REMOTE_HOST" -l "$DISPLAY" "$USER"
- # this is not reached
-fi
-
-# some output for easy debugging
-echo "$0: could not find the sessreg utility, cannot update wtmp and utmp"
-exit 0