]> Dogcows Code - chaz/openbox/commitdiff
Fixes for gnome-session 3.
authorDana Jansens <danakj@orodu.net>
Sat, 15 Oct 2011 19:07:59 +0000 (15:07 -0400)
committerDana Jansens <danakj@orodu.net>
Sun, 16 Oct 2011 22:51:51 +0000 (18:51 -0400)
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).

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

index 4f60bd045cde6bf52918b390c7f02c720f101422..1f7427cd2c0247036faf10770b0141055f991bae 100644 (file)
@@ -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 (file)
index 0000000..b90edac
--- /dev/null
@@ -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 (file)
index 0000000..156f2c3
--- /dev/null
@@ -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 (file)
index 0000000..3399c2c
--- /dev/null
@@ -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
index 9c19e67ebd1d50cc9a79ee70d0316726232b0bc9..d49ae2275c60e7fadf9b194dc5be13e30cf72e9a 100644 (file)
@@ -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 (file)
index 2d8f07b..0000000
+++ /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
This page took 0.030303 seconds and 4 git commands to generate.