Adding patch to move location for lxpanel configuration files from /usr/share/lxde...
authorDaniel Baumann <daniel@debian.org>
Fri, 18 May 2012 13:56:27 +0000 (15:56 +0200)
committerDaniel Baumann <daniel@debian.org>
Fri, 18 May 2012 14:24:11 +0000 (16:24 +0200)
debian/patches/09-xdg-lxpanel.patch [new file with mode: 0644]
debian/patches/series

diff --git a/debian/patches/09-xdg-lxpanel.patch b/debian/patches/09-xdg-lxpanel.patch
new file mode 100644 (file)
index 0000000..e1c473c
--- /dev/null
@@ -0,0 +1,53 @@
+Author: Daniel Baumann <daniel@debian.org>
+Description:
+ Moving location for lxpanel configuration files from /usr/share/lxde/lxpanel
+ to XDG global configuration directory in /etc/xdg/lxpanel/LXDE.
+
+diff -Naurp lxde-common.orig/Makefile.am lxde-common/Makefile.am
+--- lxde-common.orig/Makefile.am       2012-05-18 15:51:54.027743985 +0200
++++ lxde-common/Makefile.am    2012-05-18 15:54:04.048612199 +0200
+@@ -20,10 +20,10 @@ images_DATA= \
+       images/logout-banner.png \
+       images/lxde-icon.png
+-lxpaneldir=$(datadir)/lxpanel/profile/LXDE
++lxpaneldir=$(sysconfdir)/xdg/lxpanel/profile/LXDE
+ lxpanel_DATA=lxpanel/config
+-lxpanel_paneldir=$(datadir)/lxpanel/profile/LXDE/panels
++lxpanel_paneldir=$(sysconfdir)/xdg/lxpanel/profile/LXDE/panels
+ lxpanel_panel_DATA=lxpanel/panel
+ openboxdir=$(sysconfdir)/xdg/openbox/LXDE
+diff -Naurp lxde-common.orig/Makefile.in lxde-common/Makefile.in
+--- lxde-common.orig/Makefile.in       2012-05-18 15:51:54.031743960 +0200
++++ lxde-common/Makefile.in    2012-05-18 15:53:13.428275239 +0200
+@@ -233,9 +233,9 @@ images_DATA = \
+       images/logout-banner.png \
+       images/lxde-icon.png
+-lxpaneldir = $(datadir)/lxpanel/profile/LXDE
++lxpaneldir = $(sysconfdir)/xdg/lxpanel/profile/LXDE
+ lxpanel_DATA = lxpanel/config
+-lxpanel_paneldir = $(datadir)/lxpanel/profile/LXDE/panels
++lxpanel_paneldir = $(sysconfdir)/xdg/lxpanel/profile/LXDE/panels
+ lxpanel_panel_DATA = lxpanel/panel
+ openboxdir = $(sysconfdir)/xdg/openbox/LXDE
+ openbox_DATA = \
+diff -Naurp lxde-common.orig/startlxde.in lxde-common/startlxde.in
+--- lxde-common.orig/startlxde.in      2012-05-18 16:19:30.970879169 +0200
++++ lxde-common/startlxde.in   2012-05-18 16:23:14.588381796 +0200
+@@ -20,6 +20,13 @@ if [ ! -f "$OPENBOX_CONF_DIR/lxde-rc.xml
+       cp /etc/xdg/openbox/LXDE/rc.xml "$OPENBOX_CONF_DIR/lxde-rc.xml"
+ fi
++# Ensure the existance of lxpanel config files
++LXPANEL_CONF_DIR="$XDG_CONFIG_HOME/lxpanel"
++if [ ! -e "$LXPANEL_CONF_DIR/LXDE" ]; then
++      mkdir -p "$LXPANEL_CONF_DIR"
++      cp -r /etc/xdg/lxpanel/profile/LXDE "$LXPANEL_CONF_DIR"
++fi
++
+ # Ensure the existance of the 'Desktop' folder
+ if [ -e "$XDG_CONFIG_HOME/user-dirs.dirs" ]; then
+       . "$XDG_CONFIG_HOME/user-dirs.dirs"
index 684a69a..d245f23 100644 (file)
@@ -6,3 +6,4 @@
 06-l10n-pt-br.patch
 07-xdg-pcmanfm.patch
 08-xdg-openbox.patch
+09-xdg-lxpanel.patch