summaryrefslogtreecommitdiff
path: root/data/xsession/openbox-session.in
blob: c466f17de26f908b975dab24a968d6ea88ca5f57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

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) &
else
    if test -e $GLOBALAUTOSTART; then
        # sleep for 1 second so Openbox is there before anything else
        (sleep 1 && . $GLOBALAUTOSTART) &
    fi
fi

exec @bindir@/openbox "$@"