summarylogtreecommitdiffstats
path: root/gconf-remove.hook
diff options
context:
space:
mode:
Diffstat (limited to 'gconf-remove.hook')
-rw-r--r--gconf-remove.hook10
1 files changed, 10 insertions, 0 deletions
diff --git a/gconf-remove.hook b/gconf-remove.hook
new file mode 100644
index 000000000000..8206d1e29d83
--- /dev/null
+++ b/gconf-remove.hook
@@ -0,0 +1,10 @@
+[Trigger]
+Type = File
+Operation = Remove
+Target = usr/share/gconf/schemas/*.schemas
+
+[Action]
+Description = Uninstalling GConf schemas...
+When = PreTransaction
+Exec = /bin/bash -c 'while read -r f; do f=$(basename "$f" .schemas); /usr/bin/gconfpkg --uninstall $f; done'
+NeedsTargets