postinst 470 Bytes
Newer Older
Nicolas Bruguier's avatar
Nicolas Bruguier committed
1 2 3 4 5 6 7 8 9 10
#!/bin/sh

set -e

# Add our session for consideration into LightDM configs
case "$1" in
  configure|upgrade)
    if [ -x /usr/lib/lightdm/lightdm-set-defaults ] ; then
        /usr/lib/lightdm/lightdm-set-defaults --keep-old --session=pantheon || true
    fi
Nicolas Bruguier's avatar
Nicolas Bruguier committed
11 12 13
    if [ -e /etc/xdg/autostart/polkit-gnome-authentication-agent-1-pantheon.desktop ] ; then
	rm -f /etc/xdg/autostart/polkit-gnome-authentication-agent-1-pantheon.desktop || true
    fi
Nicolas Bruguier's avatar
Nicolas Bruguier committed
14 15 16 17
  ;;
esac

#DEBHELPER#