]> Dogcows Code - chaz/openbox/blob - data/xsession/openbox-gnome-session.in
Remove desktop hints since Openbox won't overwrite them, but they may be set from...
[chaz/openbox] / data / xsession / openbox-gnome-session.in
1 #!/bin/sh
2
3 if test -n "$1"; then
4 echo "Syntax: openbox-gnome-session"
5 echo
6 echo "See the openbox-gnome-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 VER=$(gnome-session --version 2>/dev/null | \
16 sed -e 's/[^0-9.]*\([0-9.]\+\)/\1/')
17
18 MAJOR=$(echo $VER | cut -d . -f 1)
19 MINOR=$(echo $VER | cut -d . -f 2)
20
21 # Run GNOME with Openbox as its window manager
22 export WINDOW_MANAGER="@bindir@/openbox"
23
24 if test $MAJOR -lt 2 || (test $MAJOR = 2 && test $MINOR -le 22); then
25 # old gnome-session allows multiple sessions to be saved
26 exec gnome-session --choose-session=openbox-session "$@"
27 else
28 # make sure the gnome-wm script is being used
29 gconftool-2 -t string \
30 -s /desktop/gnome/session/required_components/windowmanager "gnome-wm" \
31 2> /dev/null
32
33 # new gnome-session does not allow multiple sessions
34 exec gnome-session "$@"
35 fi
36
37
38
This page took 0.036917 seconds and 4 git commands to generate.