Remove desktop hints since Openbox won't overwrite them, but they may be set from GDM or other sessions

This commit is contained in:
Dana Jansens 2009-12-10 10:07:50 -05:00
parent 7abc28bdda
commit f0df9bb9d8
3 changed files with 15 additions and 0 deletions

View file

@ -7,6 +7,11 @@ if test -n "$1"; then
exit
fi
# Clean up after GDM
xprop -root -remove _NET_NUMBER_OF_DESKTOPS \
-remove _NET_DESKTOP_NAMES \
-remove _NET_CURRENT_DESKTOP 2> /dev/null
VER=$(gnome-session --version 2>/dev/null | \
sed -e 's/[^0-9.]*\([0-9.]\+\)/\1/')

View file

@ -7,6 +7,11 @@ if test -n "$1"; then
exit
fi
# Clean up after GDM
xprop -root -remove _NET_NUMBER_OF_DESKTOPS \
-remove _NET_DESKTOP_NAMES \
-remove _NET_CURRENT_DESKTOP 2> /dev/null
# Run KDE with Openbox as its window manager
export KDEWM="@bindir@/openbox"
exec startkde "$@"

View file

@ -7,6 +7,11 @@ if test -n "$1"; then
exit
fi
# Clean up after GDM
xprop -root -remove _NET_NUMBER_OF_DESKTOPS \
-remove _NET_DESKTOP_NAMES \
-remove _NET_CURRENT_DESKTOP 2> /dev/null
AUTOSTART="${XDG_CONFIG_HOME:-"$HOME/.config"}/openbox/autostart.sh"
GLOBALAUTOSTART="@configdir@/openbox/autostart.sh"