Changing location of Openbox configuration files placement.
authorAndriy Grytsenko <andrej@rep.kiev.ua>
Mon, 1 Sep 2014 14:06:59 +0000 (17:06 +0300)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Mon, 1 Sep 2014 14:06:59 +0000 (17:06 +0300)
Those files should be not somewhere in system shared data directory but
under system config data directory instead.

Makefile.am
startlxde.in

index f29f49c..4504f70 100644 (file)
@@ -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
index ffdb722..766260b 100755 (executable)
@@ -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 @sysconfdir@/xdg/openbox/LXDE/rc.xml "$OPENBOX_CONF_DIR/lxde-rc.xml"
 fi
 
 # Ensure the existance of the 'Desktop' folder