blob: 6e13fe0d6978788ddc7fecaf42753e82a86328c3 (
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
|
#!/bin/sh
# running desktop-specific daemons in system-wide init is a mis-conception:
killall mb-applet-startup-monitor 2>/dev/null
# This should be resourced elsewhere:
if [ -e /etc/profile ]
then
. /etc/profile
fi
if [ -e $HOME/profile ]
then
. $HOME/.profile
fi
if [ -e $HOME/.matchbox2/session ]
then
exec $HOME/.matchbox2/session
fi
if [ -e @sysconfdir@/matchbox2/session ]
then
exec @sysconfdir@/matchbox2/session
fi
if [ -e @sysconfdir@/matchbox2/defaults ]
then
. @sysconfdir@/matchbox2/defaults
fi
if [ -e $HOME/.matchbox2/defaults ]
then
. $HOME/.matchbox2/defaults
fi
for LAUNCHER in $LAUNCHERS ; do
eval MENU\=\""\$${LAUNCHER}S"\"
for APP in $MENU ; do
if test -f @datadir@/applications/$APP.desktop ; then
AUTOLAUNCHER_APPLETS="$AUTOLAUNCHER_APPLETS launcher:$APP"
break
fi
done
done
AUTOLAUNCHER_CMD=""
for APPLET in $AUTOLAUNCHER_APPLETS ; do
if test -z "$AUTOLAUNCHER_CMD" ; then
AUTOLAUNCHER_CMD="$APPLET"
else
AUTOLAUNCHER_CMD="$AUTOLAUNCHER_CMD,$APPLET"
fi
done
START_CMD=""
for APPLET in $START_APPLETS ; do
if test "$APPLET" = "autolauncher" ; then
APPLET="$AUTOLAUNCHER_CMD"
fi
if test -z "$START_CMD" ; then
START_CMD=" --start-applets=$APPLET"
else
START_CMD="$START_CMD,$APPLET"
fi
done
END_CMD=""
for APPLET in $END_APPLETS ; do
if test "$APPLET" = "autolauncher" ; then
APPLET="$AUTOLAUNCHER_CMD"
fi
if test -z "$END_CMD" ; then
END_CMD=" --end-applets=$APPLET"
else
END_CMD="$END_CMD,$APPLET"
fi
done
PANEL_OPTIONS="$PANEL_OPTIONS$START_CMD$END_CMD"
matchbox-panel-2 $PANEL_OPTIONS &
sleep 2
# matchbox-desktop-2 does not resize. Run it last.
( sleep 5 ; matchbox-desktop-2 $DESKTOP_OPTIONS )&
exec matchbox-window-manager-2-$MATCHBOX_WM $WM_OPTIONS $@
|