Remove desktop hints since Openbox won't overwrite them, but they may be set from...
[dana/openbox.git] / data / xsession / openbox-session.in
1 #!/bin/sh
2
3 if test -n "$1"; then
4     echo "Syntax: openbox-session"
5     echo
6     echo "See the openbox-session(1) manpage for help."
7   exit
8 fi
9
10 # Clean up after GDM
11 xprop -root -remove _NET_NUMBER_OF_DESKTOPS \
12       -remove _NET_DESKTOP_NAMES \
13       -remove _NET_CURRENT_DESKTOP 2> /dev/null
14
15 AUTOSTART="${XDG_CONFIG_HOME:-"$HOME/.config"}/openbox/autostart.sh"
16 GLOBALAUTOSTART="@configdir@/openbox/autostart.sh"
17
18 if test -r $AUTOSTART; then
19     . $AUTOSTART
20 else
21     if test -r $GLOBALAUTOSTART; then
22         . $GLOBALAUTOSTART
23     fi
24 fi
25
26 exec @bindir@/openbox "$@"