2007-05-14 21:58:39 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2007-05-23 17:59:58 +00:00
|
|
|
if test -n "$1"; then
|
|
|
|
echo "Syntax: openbox-session"
|
|
|
|
echo
|
|
|
|
echo "See the openbox-session(1) manpage for help."
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2009-12-10 15:07:50 +00:00
|
|
|
# Clean up after GDM
|
|
|
|
xprop -root -remove _NET_NUMBER_OF_DESKTOPS \
|
|
|
|
-remove _NET_DESKTOP_NAMES \
|
|
|
|
-remove _NET_CURRENT_DESKTOP 2> /dev/null
|
|
|
|
|
2010-02-17 21:11:36 +00:00
|
|
|
# Set up the environment
|
|
|
|
A="@configdir@/openbox/environment"
|
|
|
|
test -r $A && . $A
|
|
|
|
A="${XDG_CONFIG_HOME:-"$HOME/.config"}/openbox/environment"
|
|
|
|
test -r $A && . $A
|
2007-05-14 21:58:39 +00:00
|
|
|
|
2010-02-17 21:11:36 +00:00
|
|
|
# Run Openbox, and have it run the autostart stuff
|
|
|
|
exec @bindir@/openbox --startup "@libexecdir@/openbox-autostart OPENBOX" "$@"
|