summaryrefslogtreecommitdiff
path: root/data/xsession
diff options
context:
space:
mode:
Diffstat (limited to 'data/xsession')
-rw-r--r--data/xsession/openbox-session.in10
-rw-r--r--data/xsession/openbox.desktop4
2 files changed, 12 insertions, 2 deletions
diff --git a/data/xsession/openbox-session.in b/data/xsession/openbox-session.in
new file mode 100644
index 00000000..e76d3203
--- /dev/null
+++ b/data/xsession/openbox-session.in
@@ -0,0 +1,10 @@
+#!/bin/sh
+
+AUTOSTART="$HOME/.config/openbox/autostart"
+
+if test -e $AUTOSTART; then
+ # sleep for 1 second so Openbox is there before anything else
+ (sleep 1 && . $AUTOSTART) &
+fi
+
+exec @bindir@/openbox "$@"
diff --git a/data/xsession/openbox.desktop b/data/xsession/openbox.desktop
index 77de117a..b162f09e 100644
--- a/data/xsession/openbox.desktop
+++ b/data/xsession/openbox.desktop
@@ -2,7 +2,7 @@
Encoding=UTF-8
Name=Openbox
Comment=Log in using the Openbox window manager (without a session manager)
-Exec=openbox
-TryExec=openbox
+Exec=openbox-session
+TryExec=openbox-session
Icon=openbox.png
Type=XSession