summaryrefslogtreecommitdiff
path: root/packages/fluxbox/fluxbox-gpe/fluxbox-gpe-session
diff options
context:
space:
mode:
Diffstat (limited to 'packages/fluxbox/fluxbox-gpe/fluxbox-gpe-session')
-rw-r--r--packages/fluxbox/fluxbox-gpe/fluxbox-gpe-session30
1 files changed, 30 insertions, 0 deletions
diff --git a/packages/fluxbox/fluxbox-gpe/fluxbox-gpe-session b/packages/fluxbox/fluxbox-gpe/fluxbox-gpe-session
new file mode 100644
index 0000000000..ca0afea35d
--- /dev/null
+++ b/packages/fluxbox/fluxbox-gpe/fluxbox-gpe-session
@@ -0,0 +1,30 @@
+#!/bin/sh
+#
+# Session script for fluxbox-gpe, heavily based on matchbox's session script
+#
+
+# Install "apps" file with defaults for GPE usage
+if test -e /usr/share/fluxbox/apps.gpe
+then
+ mkdir -p $HOME/.fluxbox
+ test -e $HOME/.fluxbox/apps || cp /usr/share/fluxbox/apps.gpe $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 $@