SOURCES: GConf2-merge-tree.xinit (NEW) - merge user settings for f...

patrys patrys at pld-linux.org
Wed Dec 21 12:52:22 CET 2005


Author: patrys                       Date: Wed Dec 21 11:52:22 2005 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- merge user settings for faster startup
- script based on Debian

---- Files affected:
SOURCES:
   GConf2-merge-tree.xinit (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/GConf2-merge-tree.xinit
diff -u /dev/null SOURCES/GConf2-merge-tree.xinit:1.1
--- /dev/null	Wed Dec 21 12:52:22 2005
+++ SOURCES/GConf2-merge-tree.xinit	Wed Dec 21 12:52:17 2005
@@ -0,0 +1,22 @@
+# If the .gconf directory already exists, merge it in a single tree.
+# Otherwise, create %gconf-tree.xml so that a single tree is always
+# used.
+
+if [ -x /usr/bin/gconf-merge-tree ]; then
+	GCONF_DIR="$HOME/.gconf"
+	GCONF_TREE="$GCONF_DIR/%gconf-tree.xml"
+	GCONF_DONT="$GCONF_DIR/DONT-MIGRATE"
+
+	if [ -d "$GCONF_DIR" ]
+	then
+		if [ ! -f "$GCONF_TREE" ] && [ ! -f "$GCONF_DONT" ]
+		then
+			/usr/bin/gconf-merge-tree "$GCONF_DIR"
+			killall -q -u "$USER" -s HUP gconfd-2 >/dev/null 2>&1 || true
+		fi
+	else
+		mkdir -p -m 700 "$GCONF_DIR"
+		touch "$GCONF_TREE"
+		chmod 600 "$GCONF_TREE"
+	fi
+fi
================================================================


More information about the pld-cvs-commit mailing list