diff options
author | William Jon McCann <mccann@jhu.edu> | 2007-11-01 18:03:28 +0000 |
---|---|---|
committer | William Jon McCann <mccann@src.gnome.org> | 2007-11-01 18:03:28 +0000 |
commit | c478401c3251b5a65dd37a890f886bcf4a5f25be (patch) | |
tree | b7a0e2c7b3d8e58a141e7a369373b3ec771e3868 /data/PostSession.in | |
parent | 3edf90cd18f2affe3027e2bc43bc611bd350d13f (diff) | |
download | gdm-c478401c3251b5a65dd37a890f886bcf4a5f25be.tar.gz |
Move stuff from config to data.
2007-11-01 William Jon McCann <mccann@jhu.edu>
* config/Init.in:
* config/Makefile.am:
* config/PostLogin:
* config/PostSession.in:
* config/PreSession.in:
* config/Xsession.in:
* config/gdm:
* config/gdm-autologin:
* config/gdm.conf-custom.in:
* configure.ac:
* data/Makefile.am:
Move stuff from config to data.
svn path=/trunk/; revision=5483
Diffstat (limited to 'data/PostSession.in')
-rwxr-xr-x | data/PostSession.in | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/data/PostSession.in b/data/PostSession.in new file mode 100755 index 00000000..7c24e44c --- /dev/null +++ b/data/PostSession.in @@ -0,0 +1,27 @@ +#!/bin/sh + +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 + "$SESSREG" -d -w /var/log/wtmp -u /var/run/utmp -x "$X_SERVERS" -h "$REMOTE_HOST" -l "$DISPLAY" "$USER" +fi + +exit 0 |