diff options
Diffstat (limited to 'x11-base/xfree/files/4.2.99/Xsetup_0')
-rw-r--r-- | x11-base/xfree/files/4.2.99/Xsetup_0 | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/x11-base/xfree/files/4.2.99/Xsetup_0 b/x11-base/xfree/files/4.2.99/Xsetup_0 new file mode 100644 index 000000000000..7cbdfc32d07e --- /dev/null +++ b/x11-base/xfree/files/4.2.99/Xsetup_0 @@ -0,0 +1,30 @@ +#!/bin/sh +# $Xorg: Xsetup_0,v 1.3 2000/08/17 19:54:17 cpqbld Exp $ +#xconsole -geometry 480x130-0-0 -daemon -notify -verbose -fn fixed -exitOnFail + +# get KDEDIR value (only) and run kdmdesktop from there +eval "`grep KDEDIR /etc/profile.env`" +[ -n "$KDEDIR" ] && ${KDEDIR}/bin/kdmdesktop + +# --- Gentoo --- +# create list of sessions for kdm +sessions="SessionTypes=" +for x in `ls /etc/X11/Sessions` +do + sessions="${sessions}${x}," +done +echo sessions: $sessions + +# update all kdmrcs located +source /etc/make.conf +for dir in $KDE2DIR $KDE3DIR $KDE2LIBSDIR $KDE3LIBSDIR $KDEDIR ~/.kde /usr/kde/2 /usr/kde/3 /usr +do + + cd ${dir}/share/config/kdm || continue + + cp kdmrc kdmrc.orig + sed -e "/SessionTypes=/c\ +${sessions}" kdmrc.orig > kdmrc + rm kdmrc.orig + +done |