summaryrefslogtreecommitdiff
blob: 7cbdfc32d07e9fa65a66bd48d67a8944caab15a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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