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>
This commit is contained in:
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

View file

@ -171,7 +171,16 @@ (define sddm-command
(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)