]> Dogcows Code - chaz/openbox/blobdiff - data/xsession/openbox-session.in
Fix per-app monitor setting
[chaz/openbox] / data / xsession / openbox-session.in
index c466f17de26f908b975dab24a968d6ea88ca5f57..cc2169f4b6956a00538c8fc779e9fc2e83249296 100644 (file)
@@ -1,15 +1,20 @@
 #!/bin/sh
 
+if test -n "$1"; then
+    echo "Syntax: openbox-session"
+    echo
+    echo "See the openbox-session(1) manpage for help."
+  exit
+fi
+
 AUTOSTART="$HOME/.config/openbox/autostart.sh"
 GLOBALAUTOSTART="@configdir@/openbox/autostart.sh"
 
 if test -e $AUTOSTART; then
-    # sleep for 1 second so Openbox is there before anything else
-    (sleep 1 && . $AUTOSTART) &
+    . $AUTOSTART
 else
     if test -e $GLOBALAUTOSTART; then
-        # sleep for 1 second so Openbox is there before anything else
-        (sleep 1 && . $GLOBALAUTOSTART) &
+        . $GLOBALAUTOSTART
     fi
 fi
 
This page took 0.021026 seconds and 4 git commands to generate.