diff options
author | 2011-02-18 08:01:01 +0000 | |
---|---|---|
committer | 2011-02-18 08:01:01 +0000 | |
commit | 13a9d461bd9ec7ed1dd32f85f9a94eaf1fb6372b (patch) | |
tree | 54e68ada7e021426d025f8af3132a7b1a181bbd3 /lxde-base/lxdm/files | |
parent | Fix bug 345515 (diff) | |
download | gentoo-2-13a9d461bd9ec7ed1dd32f85f9a94eaf1fb6372b.tar.gz gentoo-2-13a9d461bd9ec7ed1dd32f85f9a94eaf1fb6372b.tar.bz2 gentoo-2-13a9d461bd9ec7ed1dd32f85f9a94eaf1fb6372b.zip |
also provide xinitrc
(Portage version: 2.2.0_alpha13/cvs/Linux x86_64)
Diffstat (limited to 'lxde-base/lxdm/files')
-rw-r--r-- | lxde-base/lxdm/files/xinitrc | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/lxde-base/lxdm/files/xinitrc b/lxde-base/lxdm/files/xinitrc new file mode 100644 index 000000000000..013b8164dcf8 --- /dev/null +++ b/lxde-base/lxdm/files/xinitrc @@ -0,0 +1,52 @@ +# Source for this script borrowed from portions of kdm's Xsession. + +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 + ;; + */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 + +[ -f /etc/xprofile ] && . /etc/xprofile +[ -f $HOME/.xprofile ] && . $HOME/.xprofile + +# run all system xinitrc shell scripts. +if [ -d /etc/X11/xinit/xinitrc.d ]; then + for i in /etc/X11/xinit/xinitrc.d/* ; do + if [ -x "$i" ]; then + . "$i" + fi + done +fi + |