summaryrefslogtreecommitdiffstats
path: root/debian/gnome-session-common.postinst
blob: 67bf76dfa2a31055ad51ba7c77f827bc0ffaba88 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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