blob: 6cbcb1ef3e704e067bb2926bc4705dd21449aafa (
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
|
#!/bin/sh
# fndSession (c) MandrakeSoft
# Chmouel Boudjnah <chmouel@mandrakesoft.com>
LIST="SessionTypes"
[ -x /usr/bin/kde ] && {
LIST="$LIST=KDE"; FIRST=yes
}
[ -x /usr/bin/gnome-session ] && {
if [ "$FIRST" = "yes" ];then
LIST="$LIST;Gnome"
else
LIST="$LIST=Gnome"
FIRST="yes"
fi
}
[ -x /usr/X11R6/bin/afterstep ] && {
if [ "$FIRST" = "yes" ];then
LIST="$LIST;AfterStep"
else
LIST="$LIST=AfterStep"
FIRST="yes"
fi
}
[ -e /usr/share/apps/switchdesk/Xclients.anotherlevel ] && {
if [ "$FIRST" = "yes" ];then
LIST="$LIST;AnotherLevel"
else
LIST="$LIST=AnotherLevel"
FIRST="yes"
fi
}
[ -x /usr/X11R6/bin/bbdrake ] && {
if [ "$FIRST" = "yes" ] ; then
LIST="$LIST;BlackBox"
FIRST="yes"
fi
}
# Work but some end users don't understant how it works. So, we disable it.
#[ -x /usr/X11R6/bin/bbdrake_kde ] && {
# if [ "$FIRST" = "yes" ] ; then
# LIST="$LIST;BlackBox/KDE"
# FIRST="yes"
# fi
#}
[ -x /usr/bin/enlightenment ] && {
if [ "$FIRST" = "yes" ];then
LIST="$LIST;Enlightenment"
else
LIST="$LIST=Enlightenment"
FIRST="yes"
fi
}
[ -x /usr/X11R6/bin/fvwm ] && {
if [ "$FIRST" = "yes" ];then
LIST="$LIST;FVWM"
else
LIST="$LIST=FVWM"
FIRST="yes"
fi
}
[ -x /usr/X11R6/bin/fvwm2 ] && {
if [ "$FIRST" = "yes" ];then
LIST="$LIST;FVWM2"
else
LIST="$LIST=FVWM2"
FIRST="yes"
fi
}
[ -x /usr/X11R6/bin/icewm ] && {
if [ "$FIRST" = "yes" ];then
LIST="$LIST;IceWM"
else
LIST="$LIST=IceWM"
FIRST="yes"
fi
}
[ -x /usr/X11R6/bin/mwm ] && {
if [ "$FIRST" = "yes" ];then
LIST="$LIST;MWM"
else
LIST="$LIST=MWM"
FIRST="yes"
fi
}
[ -x /usr/X11R6/bin/wmaker ] && {
if [ "$FIRST" = "yes" ];then
LIST="$LIST;WindowMaker"
else
LIST="$LIST=WindowMaker"
FIRST="yes"
fi
}
[ -x /usr/X11R6/bin/startxfce ] && {
if [ "$FIRST" = "yes" ];then
LIST="$LIST;XFCE"
else
LIST="$LIST=XFCE"
FIRST="yes"
fi
}
if [ $FIRST = "yes" ];then
LIST="$LIST;default;FailSafe;"
else
LIST="$LIST=default;DailSafe;"
fi
sed "s/^SessionTypes.*/"$LIST"/" /usr/share/config/kdmrc > /tmp/$$.kdmrc && \
mv /tmp/$$.kdmrc /usr/share/config/kdmrc
|