Sophie

Sophie

distrib > Mageia > 6 > armv7hl > by-pkgid > c92eb9a30abc186f72362027c0b9ea39 > files > 1

lxqt-common-0.11.0-1.mga6.src.rpm

Index: lxqt-common-0.10.0/startlxqt.in
===================================================================
--- lxqt-common-0.10.0/startlxqt.in
+++ lxqt-common-0.10.0/startlxqt.in	2015-12-18 18:32:26.750895440 -0500
@@ -34,6 +34,30 @@
     export XDG_CACHE_HOME="$HOME/.cache"
 fi
 
+# ensure the existance of default pcmanfm-qt config file
+PCMANFM_CONF_DIR="$XDG_CONFIG_HOME/pcmanfm-qt/lxqt"
+if [ ! -f "$PCMANFM_CONF_DIR/settings.conf" ]; then
+	mkdir -p "$PCMANFM_CONF_DIR"
+	cp /etc/xdg/pcmanfm-qt/lxqt/settings.conf "$PCMANFM_CONF_DIR/"
+fi
+
+# ensure the existance of default LXQt config files
+LXQT_CONF_DIR="$XDG_CONFIG_HOME/lxqt"
+for config in lxqt panel session windowmanagers;
+do
+  if [ ! -f "$LXQT_CONF_DIR/${config}.conf" ]; then
+	mkdir -p "$LXQT_CONF_DIR"
+	cp /etc/xdg/lxqt/${config}.conf "$LXQT_CONF_DIR/"
+  fi
+done
+
+# ensure existence of default openbox config file
+OPENBOX_CONF_DIR="$XDG_CONFIG_HOME/openbox"
+if [ ! -f "$OPENBOX_CONF_DIR/rc.xml" ]; then
+	mkdir -p "$OPENBOX_CONF_DIR"
+	cp /etc/xdg/openbox/rc.xml "$OPENBOX_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"