mirror of
https://github.com/void-linux/void-packages.git
synced 2025-08-02 10:52:57 +02:00
lightdm: create required dirs in the runit service instead; fix session wrapper.
This commit is contained in:
parent
62ab8898a6
commit
1a5cf0b8c2
2 changed files with 3 additions and 4 deletions
|
@ -3,4 +3,6 @@ sv check dbus >/dev/null || exit 1
|
||||||
[ ! -d /run/lightdm ] && mkdir -p /run/lightdm
|
[ ! -d /run/lightdm ] && mkdir -p /run/lightdm
|
||||||
chmod 0711 /run/lightdm
|
chmod 0711 /run/lightdm
|
||||||
chown lightdm:lightdm /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
|
exec lightdm
|
||||||
|
|
|
@ -27,10 +27,6 @@ conf_files="
|
||||||
/etc/pam.d/lightdm-autologin"
|
/etc/pam.d/lightdm-autologin"
|
||||||
system_accounts="lightdm"
|
system_accounts="lightdm"
|
||||||
lightdm_homedir="/var/lib/lightdm"
|
lightdm_homedir="/var/lib/lightdm"
|
||||||
make_dirs="
|
|
||||||
/var/lib/lightdm 0755 lightdm lightdm
|
|
||||||
/var/lib/lightdm-data 0755 lightdm lightdm"
|
|
||||||
|
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
# Remove provided init file and use our own.
|
# Remove provided init file and use our own.
|
||||||
|
@ -47,6 +43,7 @@ post_install() {
|
||||||
sed 's|\(.*pam_systemd.*\)|-\1|' -i $f
|
sed 's|\(.*pam_systemd.*\)|-\1|' -i $f
|
||||||
echo "-session optional pam_ck_connector.so nox11" >> $f
|
echo "-session optional pam_ck_connector.so nox11" >> $f
|
||||||
done
|
done
|
||||||
|
sed 's|\#session-wrapper=.*|session-wrapper=/etc/lightdm/Xsession|' -i ${DESTDIR}/etc/lightdm/lightdm.conf
|
||||||
}
|
}
|
||||||
|
|
||||||
liblightdm-gobject_package() {
|
liblightdm-gobject_package() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue