summaryrefslogtreecommitdiffstats
path: root/debian/gnome-session-common.postinst
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 14:41:01 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 14:41:01 +0000
commit1a2738532d1c95e1d48701628cd81ca96c267761 (patch)
treea67781318e259d176e6d6d056501bc6a372a8453 /debian/gnome-session-common.postinst
parentAdding upstream version 3.38.0. (diff)
downloadgnome-session-1a2738532d1c95e1d48701628cd81ca96c267761.tar.xz
gnome-session-1a2738532d1c95e1d48701628cd81ca96c267761.zip
Adding debian version 3.38.0-4.debian/3.38.0-4debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/gnome-session-common.postinst')
-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