Fix some rebase artifacts
[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 # Set up the environment
16 A="@configdir@/openbox/environment"
17 test -r $A && . $A
18 A="${XDG_CONFIG_HOME:-"$HOME/.config"}/openbox/environment"
19 test -r $A && . $A
20
21 # Run Openbox, and have it run the autostart stuff
22 exec @bindir@/openbox --startup "@libexecdir@/openbox-autostart OPENBOX" "$@"