services: lightdm: Fix activation script and default vnc server command.

* gnu/services/lightdm.scm (lightdm-configuration)
[vnc-server-command]: Add missing '/' in binary file name..
(%lightdm-activation): Apply 'directory' *variable*, not string, to
'find-files'.

Reported-by: Dariqq <dariqq@posteo.net>
Change-Id: Iec67051d18026c87800552f9dd3198f065f2dc7d
This commit is contained in:
Maxim Cournoyer 2024-10-23 23:40:18 +09:00
parent ac19ae37b5
commit e4e1e16bc1
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -364,7 +364,7 @@ When unspecified, listen on for any hosts/IP addresses.")
(boolean #f)
"Whether a VNC server is started.")
(vnc-server-command
(file-like (file-append tigervnc-server "bin/Xvnc"))
(file-like (file-append tigervnc-server "/bin/Xvnc"))
"The Xvnc command to use for the VNC server, it's possible to provide extra
options not otherwise exposed along the command, for example to disable
security:
@ -524,8 +524,7 @@ port=" (number->string vnc-server-port) "\n"
(not (= gid (stat:gid st)))))
(for-each (lambda (file)
(chown file uid gid))
(find-files "directory"
#:directories? #t)))))
(find-files directory #:directories? #t)))))
(when (not (stat "/var/lib/lightdm-data" #f))
(mkdir-p "/var/lib/lightdm-data"))