From fc14af5d2f0696f9fef222b555aca093c6b2fe6e Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Thu, 4 Apr 2013 17:48:34 +0200 Subject: Fix Xsession startup, fix polkit+rsyslog on suse --- remote/modules/kdm/data/etc/kde4/kdm/Xsession | 48 +++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100755 remote/modules/kdm/data/etc/kde4/kdm/Xsession (limited to 'remote/modules/kdm/data') 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 + -- cgit v1.2.3-55-g7522