blob: f6e03ede7e338620d2b37c9010e276aea4cf4eb2 (
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
|
#!/bin/sh
#
# Session script for fluxbox-gpe, heavily based on matchbox's session script
#
# Install "apps" file with defaults for GPE usage
MACHINE="`cat /proc/cpuinfo | sed -n "/^Hardware/s/.*\:\ \(.*\)/\1/p"`"
case $MACHINE in
*Akita | *Spitz | *Borzoi | *Terrier)
APPS="apps.gpe.akita";;
*)
APPS="apps.gpe.default";;
esac
if test -e /usr/share/fluxbox/$APPS
then
mkdir -p $HOME/.fluxbox
test -e $HOME/.fluxbox/apps || cp /usr/share/fluxbox/$APPS $HOME/.fluxbox/apps
fi
if [ -e $HOME/.fluxbox/session ]
then
exec $HOME/.fluxbox/session
fi
if [ -e /usr/share/fluxbox/session ]
then
exec /usr/share/fluxbox/session
fi
# Default files to run if $HOME/.matchbox/session or /etc/matchbox/session
# dont exist.
matchbox-desktop &
matchbox-panel --orientation south -no-flip &
sleep 5
exec startfluxbox $@
|