File: gnome-session-common.postinst

package info (click to toggle)
gnome-session 49.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,716 kB
  • sloc: ansic: 7,392; xml: 591; python: 125; makefile: 48; sh: 42
file content (16 lines) | stat: -rw-r--r-- 482 bytes parent folder | download | duplicates (6)
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