Use a lightdm.conf.d file to enable unity8-greeter rather than postinst/prerm stanzas
commit3ac071cf5e2d2a1ee9cd81469d80873c0ec8d33d
authorMichael Terry <michael.terry@canonical.com>
dateThu 8 Aug 2013, 15:42 (13 years ago)
parent5f72b85
51-unity8-greeter.confnew file+2
@@ -0,0 +1,2 @@
1+[SeatDefaults]
2+greeter-session=unity8-greeter
CMakeLists.txt+5
@@ -186,6 +186,11 @@ install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${SHELL_APP}.desktop
186186install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${GREETER_APP}.desktop
187187 DESTINATION ${CMAKE_INSTALL_DATADIR}/lightdm/greeters
188188 )
189+# This next rule should use ${CMAKE_INSTALL_SYSCONFDIR}, but until Debian bug
190+# 719148 is fixed, we need to manually specify /etc
191+install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/51-${GREETER_APP}.conf
192+ DESTINATION /etc/lightdm/lightdm.conf.d
193+ )
189194
190195#
191196# Translation
debian/unity8-greeter.install+1
@@ -1,3 +1,4 @@
1+etc/lightdm
12usr/bin/unity8-greeter
23usr/share/lightdm/greeters/unity8-greeter.desktop
34usr/share/unity8/GreeterShell.qml
debian/unity8-greeter.postinstdeleted−12
@@ -1,12 +0,0 @@
1−#!/bin/sh
2−set -e
3−
4−case "$1" in
5−configure|upgrade|reconfigure)
6− if [ -x /usr/lib/lightdm/lightdm-set-defaults ] ; then
7− /usr/lib/lightdm/lightdm-set-defaults --keep-old --greeter=unity8-greeter --session=ubuntu-touch || true
8− fi
9− ;;
10−esac
11−
12−#DEBHELPER#
debian/unity8-greeter.prermdeleted−12
@@ -1,12 +0,0 @@
1−#!/bin/sh
2−set -e
3−
4−case "$1" in
5−remove|purge)
6− if [ -x /usr/lib/lightdm/lightdm-set-defaults ] ; then
7− /usr/lib/lightdm/lightdm-set-defaults --remove --greeter=unity8-greeter --session=ubuntu-touch || true
8− fi
9− ;;
10−esac
11−
12−#DEBHELPER#