summaryrefslogtreecommitdiffstats
path: root/main/gnome-panel/gnome-panel.pre-deinstall
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2011-01-24 11:29:44 -0600
committerWilliam Pitcock <nenolod@dereferenced.org>2011-01-24 11:29:44 -0600
commitec5f73dfdbd4663c9e15a45f77f07a471247520b (patch)
tree633f87cdb53dba5ad575aaa12bb292d4527d13cb /main/gnome-panel/gnome-panel.pre-deinstall
parent02d24b36f7dd89648923bcae35e271848ab9ca3f (diff)
downloadaports-ec5f73dfdbd4663c9e15a45f77f07a471247520b.tar.bz2
aports-ec5f73dfdbd4663c9e15a45f77f07a471247520b.tar.xz
testing/gnome-panel: promote to main
Diffstat (limited to 'main/gnome-panel/gnome-panel.pre-deinstall')
-rw-r--r--main/gnome-panel/gnome-panel.pre-deinstall21
1 files changed, 21 insertions, 0 deletions
diff --git a/main/gnome-panel/gnome-panel.pre-deinstall b/main/gnome-panel/gnome-panel.pre-deinstall
new file mode 100644
index 000000000..96aa7274d
--- /dev/null
+++ b/main/gnome-panel/gnome-panel.pre-deinstall
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+for i in \
+ clock.schemas \
+ fish.schemas \
+ panel-compatibility.schemas \
+ panel-general.schemas \
+ panel-global.schemas \
+ panel-object.schemas \
+ panel-toplevel.schemas \
+ window-list.schemas \
+ workspace-switcher.schemas \
+; do
+ echo "Uninstalling GConf2 schema $i."
+ GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source` \
+ /usr/bin/gconftool-2 --makefile-uninstall-rule /etc/gconf/schemas/$i >/dev/null
+done
+
+GCONF_CONFIG_SOURCE=`/usr/bin/gconftool-2 --get-default-source`
+echo "Uninstalling GConf2 default entries from ${GCONF_CONFIG_SOURCE}"
+/usr/bin/gconftool-2 --config-source="${GCONF_CONFIG_SOURCE}" --direct --unload /etc/gconf/schemas/panel-default-setup.entries >/dev/null