=== modified file 'debian/ubuntu-session.postinst'
--- debian/ubuntu-session.postinst 2017-07-06 14:57:03 +0000
+++ debian/ubuntu-session.postinst 2017-07-10 14:07:56 +0000
@@ -11,23 +11,24 @@
DEFAULT_DISPLAY_MANAGER_FILE=/etc/X11/default-display-manager
if [ "$1" = configure ]; then
- RET=`grep -c gdm3 $DEFAULT_DISPLAY_MANAGER_FILE || true`
- if [ $RET -gt 0 ]; then
- # Nothing to do
- exit 0;
- fi
-
- TRANSITION=false
- for file in /var/lib/AccountsService/users/*; do
- RET=`grep -c 'XSession=ubuntu' $file || true`
+ if dpkg --compare-versions "$2" lt "3.24.1-0ubuntu10~"; then
+ RET=`grep -c lightdm $DEFAULT_DISPLAY_MANAGER_FILE || true`
if [ $RET -gt 0 ]; then
- TRANSITION=true
+ TRANSITION=false
+ for file in /var/lib/AccountsService/users/*; do
+ RET=`grep -c 'XSession=ubuntu' $file || true`
+ if [ $RET -gt 0 ]; then
+ TRANSITION=true
+ fi
+ done
+
+ if [ "$TRANSITION" = true ]; then
+ DEFAULT_DISPLAY_MANAGER_DIR=$(dirname $DEFAULT_DISPLAY_MANAGER_FILE)
+ test -e $DEFAULT_DISPLAY_MANAGER_DIR || mkdir -p $DEFAULT_DISPLAY_MANAGER_DIR
+ touch $DEFAULT_DISPLAY_MANAGER_FILE.debconf-transition
+ fi
fi
- done
-
- if [ "$TRANSITION" = true ]; then
- DEFAULT_DISPLAY_MANAGER_DIR=$(dirname $DEFAULT_DISPLAY_MANAGER_FILE)
- test -e $DEFAULT_DISPLAY_MANAGER_DIR || mkdir -p $DEFAULT_DISPLAY_MANAGER_DIR
- touch $DEFAULT_DISPLAY_MANAGER_FILE.debconf-transition
fi
fi
+
+#DEBHELPER#