X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=data%2Fxsession%2Fopenbox-session.in;h=cc2169f4b6956a00538c8fc779e9fc2e83249296;hb=3167fc223ea82851ae954b348a5ff1c0ce6b6d79;hp=c466f17de26f908b975dab24a968d6ea88ca5f57;hpb=b74cff0302e70d702e958a8205a6f6e2e2858192;p=chaz%2Fopenbox diff --git a/data/xsession/openbox-session.in b/data/xsession/openbox-session.in index c466f17d..cc2169f4 100644 --- a/data/xsession/openbox-session.in +++ b/data/xsession/openbox-session.in @@ -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