lightdm: create required dirs in the runit service instead; fix session wrapper.

This commit is contained in:
Juan RP 2014-11-09 10:43:22 +01:00
parent 62ab8898a6
commit 1a5cf0b8c2
2 changed files with 3 additions and 4 deletions

View file

@ -3,4 +3,6 @@ sv check dbus >/dev/null || exit 1
[ ! -d /run/lightdm ] && mkdir -p /run/lightdm
chmod 0711 /run/lightdm
chown lightdm:lightdm /run/lightdm
mkdir -p /var/lib/lightdm /var/lib/lightm-data
chown -R lightdm:lightdm /var/lib/lightdm /var/lib/lightdm-data
exec lightdm

View file

@ -27,10 +27,6 @@ conf_files="
/etc/pam.d/lightdm-autologin"
system_accounts="lightdm"
lightdm_homedir="/var/lib/lightdm"
make_dirs="
/var/lib/lightdm 0755 lightdm lightdm
/var/lib/lightdm-data 0755 lightdm lightdm"
post_install() {
# Remove provided init file and use our own.
@ -47,6 +43,7 @@ post_install() {
sed 's|\(.*pam_systemd.*\)|-\1|' -i $f
echo "-session optional pam_ck_connector.so nox11" >> $f
done
sed 's|\#session-wrapper=.*|session-wrapper=/etc/lightdm/Xsession|' -i ${DESTDIR}/etc/lightdm/lightdm.conf
}
liblightdm-gobject_package() {