me
/
guix
Archived
1
0
Fork 0

services: sddm: Set some environment variables for the breeze theme.

* gnu/services/sddm.scm (sddm-service-type): Pass #:environment-variables to
make-forkexec-constructor.

Signed-off-by: 宋文武 <iyzsong@member.fsf.org>
master
Zheng Junjie 2023-07-21 17:39:27 +08:00 committed by 宋文武
parent 3e5192e6bb
commit 7e056197d7
No known key found for this signature in database
GPG Key ID: D415BF253B515976
1 changed files with 10 additions and 1 deletions

View File

@ -171,7 +171,16 @@ Relogin=" (if (sddm-configuration-relogin? config)
(documentation "SDDM display manager.")
(requirement '(user-processes elogind pam))
(provision '(xorg-server display-manager))
(start #~(make-forkexec-constructor #$sddm-command))
(start #~(make-forkexec-constructor
#$sddm-command
;; some theme need icon,qml,data so add path to env.
#:environment-variables
(cons*
"XDG_DATA_DIRS=/run/current-system/profile/share"
"XDG_CONFIG_DIRS=/run/current-system/profile/etc/xdg"
"QT_PLUGIN_PATH=/run/current-system/profile/lib/qt5/plugins"
"QML2_IMPORT_PATH=/run/current-system/profile/lib/qt5/qml"
(default-environment-variables))))
(stop #~(make-kill-destructor)))))
(define (sddm-etc-service config)