lubuntu-default-settings/debian/lubuntu-default-settings.postinst
Julien Lavergne c1cf9ae36f * usr/share/xsessions/lxgames.desktop :
- Add a new session to start a games session.
* debian/control:
 - Add new binaries, to configure default session on lightdm.
* Reorganize script in debian/ to handle the creation of the new
  default-session binaries.
* debian/lubuntu-default-settings.install:
 - Keep all files in lubuntu-default-settings.
2011-12-19 00:23:13 +01:00

27 lines
791 B
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
#DEBHELPER#
exit 0