summaryrefslogtreecommitdiffstats
path: root/debian/gnome-session-common.postinst
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--debian/gnome-session-common.postinst16
1 files changed, 16 insertions, 0 deletions
diff --git a/debian/gnome-session-common.postinst b/debian/gnome-session-common.postinst
new file mode 100644
index 0000000..67bf76d
--- /dev/null
+++ b/debian/gnome-session-common.postinst
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+set -e
+
+# Abuse dpkg-maintscript-helper to move/remove /etc/gnome/defaults.list
+if [ "$1" = "configure" ] && dpkg --compare-versions "$2" le-nl "3.20.1-2~"; then
+ if [ -f "/etc/gnome/defaults.list.dpkg-backup" ]; then
+ echo "Obsolete conffile /etc/gnome/defaults.list has been modified by you."
+ echo "Moving the file to /etc/xdg/gnome-mimeapps.list ..."
+ mv -f "/etc/gnome/defaults.list.dpkg-backup" "/etc/xdg/gnome-mimeapps.list"
+ fi
+fi
+
+#DEBHELPER#
+
+exit 0