diff options
author | Brian Cameron <bcameron@src.gnome.org> | 2007-01-29 11:17:09 +0000 |
---|---|---|
committer | Brian Cameron <bcameron@src.gnome.org> | 2007-01-29 11:17:09 +0000 |
commit | d1992561fd28ec994cf34cb9ab7e716c9d394497 (patch) | |
tree | 4b825dc642cb6eb9a060e54bf8d69288fbee4904 /config/PreSession.in | |
parent | c595a601f525fc830a24a62a5e0ed0fa20c9b3af (diff) | |
download | gdm-GDM2_2_16_5_svn4555.tar.gz |
Removing bad tag.GDM2_2_16_5_svn4555
Removing bad tag.
svn path=/tags/GDM2_2_16_5; revision=4554
Diffstat (limited to 'config/PreSession.in')
-rwxr-xr-x | config/PreSession.in | 84 |
1 files changed, 0 insertions, 84 deletions
diff --git a/config/PreSession.in b/config/PreSession.in deleted file mode 100755 index 5ab7248a..00000000 --- a/config/PreSession.in +++ /dev/null @@ -1,84 +0,0 @@ -#!/bin/sh -# -# Note that any setup should come before the sessreg command as -# that must be 'exec'ed for the pid to be correct (sessreg uses the parent -# pid) -# -# 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" -} - -# Set background color -XSETROOT=`gdmwhich xsetroot` -if [ "x$XSETROOT" != "x" ] ; then - - CHECKBACKCOLOR="OK" - if [ "x$GDM_GREETER_TYPE" = "xTHEMED" ]; then - BACKCOLOR=`gdmflexiserver --command="GET_CONFIG greeter/GraphicalThemedColor $DISPLAY"` - - CHECKBACKCOLOR=`echo $BACKCOLOR | sed 's/^\([^ ]*\) .*$/\1/'` - if [ "x$CHECKBACKCOLOR" = "xOK" ]; then - BACKCOLOR=`echo $BACKCOLOR | sed 's/^.* \(.*\)$/\1/'` - else - BACKCOLOR="" - fi - fi - - # If we tried to load the themed backgroundcolor, but failed, then try loading plain color - if [ "x$CHECKBACKCOLOR" != "xOK" ] || [ "x$GDM_GREETER_TYPE" = "xPLAIN" ]; then - - # Background type can be 0=None, 1=Image & Color, 2=Color, or 3=Image - BACKTYPE=`gdmflexiserver --command="GET_CONFIG greeter/BackgroundType $DISPLAY"` - - # Skip if background type does not include a color - if [ "x$BACKTYPE" = "xOK 1" ] || [ "x$BACKTYPE" = "xOK 2" ]; then - BACKCOLOR=`gdmflexiserver --command="GET_CONFIG greeter/BackgroundColor $DISPLAY"` - - CHECKBACKCOLOR=`echo $BACKCOLOR | sed 's/^\([^ ]*\) .*$/\1/'` - if [ "x$CHECKBACKCOLOR" = "xOK" ]; then - BACKCOLOR=`echo $BACKCOLOR | sed 's/^.* \(.*\)$/\1/'` - else - BACKCOLOR="" - fi - fi - fi - - # Default value - if [ "x$BACKCOLOR" = "x" ]; then - BACKCOLOR="#76848F" - fi - - "$XSETROOT" -cursor_name left_ptr -solid "$BACKCOLOR" -fi - - -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 |