]> Dogcows Code - chaz/openbox/commitdiff
Make openbox-gnome-session compatible with gnome3 with gnome-session 3.0+ support.
authorGeoffrey Antos <dynamotwain@aim.com>
Fri, 7 Oct 2011 13:29:30 +0000 (09:29 -0400)
committerDana Jansens <danakj@orodu.net>
Fri, 7 Oct 2011 13:38:25 +0000 (09:38 -0400)
Yay they did something nice and made it easier for other window managers to be used.  How unexpected and pleasant.

Makefile.am
data/xsession/openbox-gnome-session.in
data/xsession/openbox-gnome.session [new file with mode: 0644]

index c62a59440b01cb001d994c7f4619df672ce843fa..7ed1f6a8d908065085632cb72342ffb10aa4ee8f 100644 (file)
@@ -6,6 +6,7 @@ localedir       = $(datadir)/locale
 configdir       = $(sysconfdir)/xdg
 rcdir           = $(configdir)/openbox
 xsessionsdir    = $(datadir)/xsessions
+gnomesessiondir = $(datadir)/gnome-session/sessions
 gnomewmfilesdir = $(datadir)/gnome/wm-properties
 pkgconfigdir    = $(libdir)/pkgconfig
 obtpubincludedir= $(includedir)/openbox/@OBT_VERSION@/obt
@@ -513,6 +514,9 @@ nodist_xsessions_DATA = \
        data/xsession/openbox-gnome.desktop \
        data/xsession/openbox-kde.desktop
 
+dist_gnomesession_DATA = \
+       data/xsession/openbox-gnome.session
+
 dist_noinst_DATA = \
        data/rc.xsd \
        data/menu.xsd \
@@ -581,6 +585,7 @@ EXTRA_DIST = \
 CLEANFILES = \
        $(nodist_man_MANS) \
        $(nodist_bin_SCRIPTS) \
+       $(dist_gnomesession_DATA) \
        $(nodist_xsessions_DATA) \
        $(nodist_rc_SCRIPTS) \
        $(nodist_libexec_SCRIPTS)
index 8dd799c0dd0775abd3f3c3c1daa5ca32368eb647..f31c9ad2c704fd380f6caff3fab4432918a201e7 100644 (file)
@@ -21,11 +21,11 @@ MINOR=$(echo $VER | cut -d . -f 2)
 # run GNOME with Openbox as its window manager
 
 if test $MAJOR -lt 2 || (test $MAJOR = 2 && test $MINOR -le 22); then
-  # old gnome-session was easy to work with
+  # older gnome-session was easy to work with
   export WINDOW_MANAGER="@bindir@/openbox"
   exec gnome-session --choose-session=openbox-session "$@"
-else
-  # new gnome-session requires openbox to be set in gconf and an
+elif test $MAJOR -lt 3; then
+  # old gnome-session requires openbox to be set in gconf and an
   # openbox.desktop to be installed in the applications directory
 
   SPATH=/desktop/gnome/session
@@ -54,6 +54,12 @@ else
 
   # run GNOME/Openbox
   exec gnome-session --default-session-key $SPATH/openbox_session "$@"
+else
+  # new gnome-session requires session file installed in
+  # /usr/share/gnome-session/sessions as well as openbox.desktop to be
+  # installed in the applications directory
+
+  exec gnome-session --session=openbox-gnome
 fi
 
 
diff --git a/data/xsession/openbox-gnome.session b/data/xsession/openbox-gnome.session
new file mode 100644 (file)
index 0000000..2d8f07b
--- /dev/null
@@ -0,0 +1,6 @@
+[GNOME Session]
+Name=GNOME/Openbox
+RequiredComponents=gnome-panel;gnome-settings-daemon;
+RequiredProviders=windowmanager;notifications;
+DefaultProvider-windowmanager=openbox
+DefaultProvider-notifications=notification-daemon
This page took 0.029641 seconds and 4 git commands to generate.