]> git.pld-linux.org Git - packages/GConf2.git/blame - GConf2-merge-tree.xinit
- rel 6
[packages/GConf2.git] / GConf2-merge-tree.xinit
CommitLineData
b35c03ab
PZ
1# If the .gconf directory already exists, merge it in a single tree.
2# Otherwise, create %gconf-tree.xml so that a single tree is always
3# used.
4
5if [ -x /usr/bin/gconf-merge-tree ]; then
6 GCONF_DIR="$HOME/.gconf"
7 GCONF_TREE="$GCONF_DIR/%gconf-tree.xml"
8 GCONF_DONT="$GCONF_DIR/DONT-MIGRATE"
9
10 if [ -d "$GCONF_DIR" ]
11 then
12 if [ ! -f "$GCONF_TREE" ] && [ ! -f "$GCONF_DONT" ]
13 then
14 /usr/bin/gconf-merge-tree "$GCONF_DIR"
15 killall -q -u "$USER" -s HUP gconfd-2 >/dev/null 2>&1 || true
16 fi
17 else
18 mkdir -p -m 700 "$GCONF_DIR"
19 touch "$GCONF_TREE"
20 chmod 600 "$GCONF_TREE"
21 fi
22fi
This page took 0.042441 seconds and 4 git commands to generate.