summaryrefslogtreecommitdiff
path: root/autoscripts
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts')
-rw-r--r--autoscripts/postinst-desktop3
-rw-r--r--autoscripts/postrm-desktop3
2 files changed, 6 insertions, 0 deletions
diff --git a/autoscripts/postinst-desktop b/autoscripts/postinst-desktop
new file mode 100644
index 00000000..ff6e6a12
--- /dev/null
+++ b/autoscripts/postinst-desktop
@@ -0,0 +1,3 @@
+if [ "$1" = "configure" ] && which update-desktop-database >/dev/null 2>&1 ; then
+ update-desktop-database -q
+fi
diff --git a/autoscripts/postrm-desktop b/autoscripts/postrm-desktop
new file mode 100644
index 00000000..38dd191c
--- /dev/null
+++ b/autoscripts/postrm-desktop
@@ -0,0 +1,3 @@
+if [ "$1" = "remove" ] && which update-desktop-database >/dev/null 2>&1 ; then
+ update-desktop-database -q
+fi