From: Dana Jansens Date: Sat, 15 Oct 2011 19:07:59 +0000 (-0400) Subject: Fixes for gnome-session 3. X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=3991e148e2acbc3da3b9c31e2459b20a4e598a03;p=chaz%2Fopenbox Fixes for gnome-session 3. We run by default with a panel (default gnome-panel) and then run Openbox without any panel if one cannot be found. - Adds a fallback session for if a panel (default gnome-panel) not found. - Removes notifications as a requirement. Seems to be a legacy thing judging from the ubuntu .session files. Notifications are being provided by notify-osd on modern systems, and you can't check for its presence in gnome-session (gnome-classic.session always fails because it looks for it, so ubuntu falls back to gnome-fallback.session). --- diff --git a/Makefile.am b/Makefile.am index 4f60bd04..1f7427cd 100644 --- a/Makefile.am +++ b/Makefile.am @@ -516,7 +516,8 @@ nodist_xsessions_DATA = \ data/xsession/openbox-kde.desktop dist_gnomesession_DATA = \ - data/xsession/openbox-gnome.session + data/gnome-session/openbox-gnome.session \ + data/gnome-session/openbox-gnome-fallback.session dist_noinst_DATA = \ data/rc.xsd \ diff --git a/data/gnome-session/Makefile b/data/gnome-session/Makefile new file mode 100644 index 00000000..b90edacf --- /dev/null +++ b/data/gnome-session/Makefile @@ -0,0 +1,4 @@ +all clean install: + $(MAKE) -C .. -$(MAKEFLAGS) $@ + +.PHONY: all clean install diff --git a/data/gnome-session/openbox-gnome-fallback.session b/data/gnome-session/openbox-gnome-fallback.session new file mode 100644 index 00000000..156f2c34 --- /dev/null +++ b/data/gnome-session/openbox-gnome-fallback.session @@ -0,0 +1,6 @@ +[GNOME Session] +Name=GNOME/Openbox fallback (Safe Mode) +RequiredComponents=gnome-settings-daemon; +RequiredProviders=windowmanager; +DefaultProvider-windowmanager=openbox +DesktopName=GNOME diff --git a/data/gnome-session/openbox-gnome.session b/data/gnome-session/openbox-gnome.session new file mode 100644 index 00000000..3399c2c0 --- /dev/null +++ b/data/gnome-session/openbox-gnome.session @@ -0,0 +1,9 @@ +[GNOME Session] +Name=GNOME/Openbox +RequiredComponents=gnome-settings-daemon; +# Try load with the gnome-panel and use the fallback if we can't load a panel +RequiredProviders=windowmanager;panel +DefaultProvider-windowmanager=openbox +DefaultProvider-panel=gnome-panel +FallbackSession=openbox-gnome-fallback +DesktopName=GNOME diff --git a/data/openbox.desktop b/data/openbox.desktop index 9c19e67e..d49ae227 100644 --- a/data/openbox.desktop +++ b/data/openbox.desktop @@ -7,6 +7,10 @@ Icon=openbox NoDisplay=true # name we put on the WM spec check window X-GNOME-WMName=Openbox +# gnome-session autostart X-GNOME-Autostart-Phase=WindowManager X-GNOME-Provides=windowmanager +# Ubuntu stuff +X-Ubuntu-Gettext-Domain=openbox +# back compat X-GNOME-Autostart-Notify=true diff --git a/data/xsession/openbox-gnome.session b/data/xsession/openbox-gnome.session deleted file mode 100644 index 2d8f07b2..00000000 --- a/data/xsession/openbox-gnome.session +++ /dev/null @@ -1,6 +0,0 @@ -[GNOME Session] -Name=GNOME/Openbox -RequiredComponents=gnome-panel;gnome-settings-daemon; -RequiredProviders=windowmanager;notifications; -DefaultProvider-windowmanager=openbox -DefaultProvider-notifications=notification-daemon