Lines 78-116
Link Here
|
78 |
WINDOW_MANAGER=xterm |
78 |
WINDOW_MANAGER=xterm |
79 |
fi |
79 |
fi |
80 |
|
80 |
|
81 |
# Now create options OPT1, OPT2 and OPT3 based on the windowmanager used |
81 |
# Now create options OPTS based on the windowmanager used |
82 |
OPT1= |
82 |
OPTS= |
83 |
OPT2= |
|
|
84 |
OPT3= |
85 |
OPT4= |
86 |
if [ ! -z "$SMID" ] ; then |
83 |
if [ ! -z "$SMID" ] ; then |
87 |
case `basename $WINDOW_MANAGER` in |
84 |
case `basename $WINDOW_MANAGER` in |
88 |
sawfish|sawmill|metacity) |
85 |
sawfish|sawmill|metacity) |
89 |
OPT1=--sm-client-id=$SMID |
86 |
OPTS=--sm-client-id=$SMID |
90 |
;; |
87 |
;; |
91 |
openbox|enlightenment|e16) |
88 |
openbox|enlightenment|e16) |
92 |
OPT1=--sm-client-id |
89 |
OPTS="--sm-client-id $SMID" |
93 |
OPT2=$SMID |
|
|
94 |
;; |
90 |
;; |
95 |
twm) |
91 |
twm) |
96 |
OPT1=-clientId |
92 |
OPTS="-clientId $SMID" |
97 |
OPT2=$SMID |
|
|
98 |
;; |
93 |
;; |
99 |
lwm) |
94 |
lwm) |
100 |
OPT1=-s |
95 |
OPTS="-s $SMID" |
101 |
OPT2=$SMID |
|
|
102 |
;; |
96 |
;; |
103 |
fvwm) |
97 |
fvwm) |
104 |
OPT1=-i |
98 |
OPTS="-i $SMID" |
105 |
OPT2=$SMID |
|
|
106 |
;; |
99 |
;; |
107 |
compiz) |
100 |
compiz) |
108 |
OPT1=--sm-client-id |
101 |
OPTS="--sm-client-id $SMID" |
109 |
OPT2=$SMID |
|
|
110 |
;; |
102 |
;; |
111 |
beryl) |
103 |
beryl) |
112 |
OPT1=--sm-client-id |
104 |
OPTS="--sm-client-id $SMID" |
113 |
OPT2=$SMID |
|
|
114 |
;; |
105 |
;; |
115 |
#FIXME: add all other windowmanagers here with their proper options |
106 |
#FIXME: add all other windowmanagers here with their proper options |
116 |
esac |
107 |
esac |
Lines 120-133
Link Here
|
120 |
compiz) |
111 |
compiz) |
121 |
export LIBGL_ALWAYS_INDIRECT=1 |
112 |
export LIBGL_ALWAYS_INDIRECT=1 |
122 |
gtk-window-decorator & |
113 |
gtk-window-decorator & |
123 |
OPT3=glib |
114 |
# If compizconfig is installed, use its profile loader plugin. |
124 |
OPT4=gconf |
115 |
if which ccsm >/dev/null 2>&1 ; then |
|
|
116 |
OPTS="$OPTS ccp" |
117 |
else |
118 |
OPTS="$OPTS glib gconf" |
119 |
fi |
125 |
;; |
120 |
;; |
126 |
beryl) |
121 |
beryl) |
127 |
emerald & |
122 |
emerald & |
128 |
;; |
123 |
;; |
129 |
esac |
124 |
esac |
130 |
|
125 |
|
131 |
exec $WINDOW_MANAGER $OPT1 $OPT2 $OPT3 $OPT4 |
126 |
exec $WINDOW_MANAGER $OPTS |
132 |
|
127 |
|
133 |
echo "ERROR: No window manager could run!" |
128 |
echo "ERROR: No window manager could run!" |