Julien Lavergne 00f3e5ef30 * Add a theme for lightdm (taking from Xubuntu, thanks Lionel Le Folgoc).
* Add etc/xdg/lubuntu/lightdm/lightdm-gtk-greeter.conf
* debian/{postinst,prerm}: install/remove alternatives to use our config
  as /etc/lightdm/lightdm-gtk-greeter.conf.
* debian/control:
 - add depends on lightdm-gtk-greeter >= 1.0.0-0ubuntu2.
 - provides lightdm-gtk-greeter-config.
2011-11-07 11:23:34 +01:00

36 lines
1.1 KiB
Bash

#!/bin/sh -e
set -e
# Remove alternative file if it's not a symlink, workaround for broken upgrade
# See bug #625485
if [ -f /etc/alternatives/lxdm.conf ] ; then
if [ ! -h "/etc/alternatives/lxdm.conf" ] ; then
rm -f "/etc/alternatives/lxdm.conf"
fi
fi
if dpkg-maintscript-helper supports mv_conffile 2>/dev/null; then
dpkg-maintscript-helper mv_conffile /etc/xdg/pcmanfm/lubuntu.conf /etc/xdg/pcmanfm/lubuntu/pcmanfm.conf 0.15 -- "$@"
fi
if [ "$1" = "configure" ] ; then
update-alternatives --install /etc/lxdm/default.conf \
lxdm.conf /etc/xdg/lubuntu/lxdm/lxdm.conf 60
update-alternatives --install /etc/lightdm/lightdm-gtk-greeter.conf \
lightdm-gtk-greeter-config-derivative \
/etc/xdg/lubuntu/lightdm/lightdm-gtk-greeter.conf 30
fi
case "$1" in
configure|upgrade)
if [ -x /usr/lib/lightdm/lightdm-set-defaults ] ; then
/usr/lib/lightdm/lightdm-set-defaults --keep-old --session=Lubuntu || true
/usr/lib/lightdm/lightdm-set-defaults --keep-old --greeter=lightdm-gtk-greeter || true
fi
;;
esac
#DEBHELPER#
exit 0