diff options
| author | Simon Rettberg | 2013-04-04 17:48:34 +0200 |
|---|---|---|
| committer | sr | 2013-04-12 19:11:41 +0200 |
| commit | fc14af5d2f0696f9fef222b555aca093c6b2fe6e (patch) | |
| tree | 9c26e8126220f24a533e5559db1970fbcfa4b19d /remote/modules/kdm | |
| parent | Sync uids/gids by numeric value, don't remap (diff) | |
| download | tm-scripts-fc14af5d2f0696f9fef222b555aca093c6b2fe6e.tar.gz tm-scripts-fc14af5d2f0696f9fef222b555aca093c6b2fe6e.tar.xz tm-scripts-fc14af5d2f0696f9fef222b555aca093c6b2fe6e.zip | |
Fix Xsession startup, fix polkit+rsyslog on suse
Diffstat (limited to 'remote/modules/kdm')
| -rwxr-xr-x | remote/modules/kdm/data/etc/kde4/kdm/Xsession | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/remote/modules/kdm/data/etc/kde4/kdm/Xsession b/remote/modules/kdm/data/etc/kde4/kdm/Xsession new file mode 100755 index 00000000..edff71a3 --- /dev/null +++ b/remote/modules/kdm/data/etc/kde4/kdm/Xsession @@ -0,0 +1,48 @@ +#! /bin/sh +# Xsession - run as user + +session=$1 + +# Note that the respective logout scripts are not sourced. +case $SHELL in + */bash) + [ -z "$BASH" ] && exec $SHELL $0 "$@" + set +o posix + [ -f /etc/profile ] && . /etc/profile + if [ -f $HOME/.bash_profile ]; then + . $HOME/.bash_profile + elif [ -f $HOME/.bash_login ]; then + . $HOME/.bash_login + elif [ -f $HOME/.profile ]; then + . $HOME/.profile + fi + ;; + */zsh) + [ -z "$ZSH_NAME" ] && exec $SHELL $0 "$@" + emulate -R zsh + [ -d /etc/zsh ] && zdir=/etc/zsh || zdir=/etc + zhome=${ZDOTDIR:-$HOME} + # zshenv is always sourced automatically. + [ -f $zdir/zprofile ] && . $zdir/zprofile + [ -f $zhome/.zprofile ] && . $zhome/.zprofile + [ -f $zdir/zlogin ] && . $zdir/zlogin + [ -f $zhome/.zlogin ] && . $zhome/.zlogin + setopt shwordsplit noextendedglob + ;; + */csh|*/tcsh) + # [t]cshrc is always sourced automatically. + # Note that sourcing csh.login after .cshrc is non-standard. + xsess_tmp=`mktemp /tmp/xsess-env-XXXXXX` + $SHELL -c "if (-f /etc/csh.login) source /etc/csh.login; if (-f ~/.login) source ~/.login; /bin/sh -c 'export -p' >! $xsess_tmp" + . $xsess_tmp + rm -f $xsess_tmp + ;; + *) # Plain sh, ksh, and anything we do not know. + [ -f /etc/profile ] && . /etc/profile + [ -f $HOME/.profile ] && . $HOME/.profile + ;; +esac + +# invoke global X session script +. /etc/X11/Xsession + |
