Moving location for openbox configuration files from /usr/share/lxde/openbox to XDG...
authorDaniel Baumann <daniel@debian.org>
Fri, 18 May 2012 13:45:09 +0000 (15:45 +0200)
committerDaniel Baumann <daniel@debian.org>
Fri, 18 May 2012 13:50:57 +0000 (15:50 +0200)
debian/patches/08-xdg-openbox.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/08-xdg-openbox.patch b/debian/patches/08-xdg-openbox.patch
new file mode 100644 (file)
index 0000000..a4b1059
--- /dev/null
@@ -0,0 +1,42 @@
+Author: Daniel Baumann <daniel@debian.org>
+Description:
+ Moving location for openbox configuration files from /usr/share/lxde/openbox
+ to XDG global configuration directory in /etc/xdg/openbox/LXDE
+ (Closes: #649425).
+
+diff -Naurp lxde-common.orig/Makefile.am lxde-common/Makefile.am
+--- lxde-common.orig/Makefile.am       2012-05-18 15:27:34.865976021 +0200
++++ lxde-common/Makefile.am    2012-05-18 15:49:55.390944636 +0200
+@@ -26,7 +26,7 @@ lxpanel_DATA=lxpanel/config
+ lxpanel_paneldir=$(datadir)/lxpanel/profile/LXDE/panels
+ lxpanel_panel_DATA=lxpanel/panel
+-openboxdir=$(datadir)/lxde/openbox
++openboxdir=$(sysconfdir)/xdg/openbox/LXDE
+ openbox_DATA= \
+       openbox/rc.xml \
+       openbox/menu.xml
+diff -Naurp lxde-common.orig/Makefile.in lxde-common/Makefile.in
+--- lxde-common.orig/Makefile.in       2012-05-18 15:27:34.865976021 +0200
++++ lxde-common/Makefile.in    2012-05-18 15:50:24.763127662 +0200
+@@ -237,7 +237,7 @@ lxpaneldir = $(datadir)/lxpanel/profile/
+ lxpanel_DATA = lxpanel/config
+ lxpanel_paneldir = $(datadir)/lxpanel/profile/LXDE/panels
+ lxpanel_panel_DATA = lxpanel/panel
+-openboxdir = $(datadir)/lxde/openbox
++openboxdir = $(sysconfdir)/xdg/openbox/LXDE
+ openbox_DATA = \
+       openbox/rc.xml \
+       openbox/menu.xml
+diff -Naurp lxde-common.orig/startlxde.in lxde-common/startlxde.in
+--- lxde-common.orig/startlxde.in      2012-05-18 15:27:34.881975959 +0200
++++ lxde-common/startlxde.in   2012-05-18 15:49:55.390944636 +0200
+@@ -15,7 +15,7 @@ fi
+ OPENBOX_CONF_DIR="$XDG_CONFIG_HOME/openbox"
+ if [ ! -f "$OPENBOX_CONF_DIR/lxde-rc.xml" ]; then
+       mkdir -p "$OPENBOX_CONF_DIR"
+-      cp @prefix@/share/lxde/openbox/rc.xml "$OPENBOX_CONF_DIR/lxde-rc.xml"
++      cp /etc/xdg/openbox/LXDE/rc.xml "$OPENBOX_CONF_DIR/lxde-rc.xml"
+ fi
+ # Ensure the existance of the 'Desktop' folder
index 3534494..684a69a 100644 (file)
@@ -5,3 +5,4 @@
 05-openbox-fullscreen.patch
 06-l10n-pt-br.patch
 07-xdg-pcmanfm.patch
+08-xdg-openbox.patch