[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
261/465: services: sddm: Adjust pass env.
From: |
guix-commits |
Subject: |
261/465: services: sddm: Adjust pass env. |
Date: |
Tue, 16 Jul 2024 11:03:32 -0400 (EDT) |
z572 pushed a commit to branch kde-team
in repository guix.
commit 489674a438602a5ca3f2ffbb2385ea18bb41b5b8
Author: Zheng Junjie <zhengjunjie@iscas.ac.cn>
AuthorDate: Tue May 7 10:14:32 2024 +0800
services: sddm: Adjust pass env.
* gnu/services/sddm.scm (sddm-shepherd-service): Adjust pass env when sddm
build with qt6.
Change-Id: Iabaa22824db8048c7c86921010b970226f85b7a5
---
gnu/services/sddm.scm | 17 ++++++++++++++---
1 file changed, 14 insertions(+), 3 deletions(-)
diff --git a/gnu/services/sddm.scm b/gnu/services/sddm.scm
index 48695e2806..92d64cc599 100644
--- a/gnu/services/sddm.scm
+++ b/gnu/services/sddm.scm
@@ -33,6 +33,8 @@
#:use-module (guix gexp)
#:use-module (guix records)
#:use-module (guix deprecation)
+ #:use-module (guix utils)
+ #:use-module (guix packages)
#:export (sddm-configuration
sddm-configuration?
sddm-service-type
@@ -165,8 +167,13 @@ Relogin=" (if (sddm-configuration-relogin?
config)
(define (sddm-shepherd-service config)
"Return a <shepherd-service> for sddm with CONFIG."
+ (define sddm (sddm-configuration-sddm config))
+ (define qt6? (version-prefix?
+ "6"
+ (package-version (lookup-package-input sddm "qtbase"))))
+
(define sddm-command
- #~(list (string-append #$(sddm-configuration-sddm config) "/bin/sddm")))
+ #~(list (string-append #$sddm "/bin/sddm")))
(list (shepherd-service
(documentation "SDDM display manager.")
@@ -179,8 +186,12 @@ Relogin=" (if (sddm-configuration-relogin?
config)
(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"
+ #$(string-append
"QT_PLUGIN_PATH=/run/current-system/profile/lib/qt"
+ (if qt6? "6" "5")
+ "/plugins")
+ #$(string-append "QML" (if qt6? "" "2")
+
"_IMPORT_PATH=/run/current-system/profile/lib/qt"
+ (if qt6? "6" "5") "/qml")
(default-environment-variables))))
(stop #~(make-kill-destructor)))))
- 262/465: gnu: gcompris-qt: Update to 4.1., (continued)
- 262/465: gnu: gcompris-qt: Update to 4.1., guix-commits, 2024/07/16
- 279/465: gnu: konversation: Update to 24.05.2., guix-commits, 2024/07/16
- 270/465: gnu: libgravatar: Update to 24.05.2., guix-commits, 2024/07/16
- 239/465: gnu: kfind: Update to 24.05.2., guix-commits, 2024/07/16
- 254/465: gnu: akonadi-search: Update to 24.05.2., guix-commits, 2024/07/16
- 249/465: gnu: akonadi: Update to 24.05.2., guix-commits, 2024/07/16
- 280/465: gnu: libkcddb: Update to 24.05.2., guix-commits, 2024/07/16
- 265/465: gnu: kmailtransport: Update to 24.05.2., guix-commits, 2024/07/16
- 255/465: gnu: kimap: Update to 24.05.2., guix-commits, 2024/07/16
- 266/465: gnu: kmbox: Update to 24.05.2., guix-commits, 2024/07/16
- 261/465: services: sddm: Adjust pass env.,
guix-commits <=
- 240/465: gnu: kontrast: Update to 24.05.2., guix-commits, 2024/07/16
- 268/465: gnu: kidentitymanagement: Update to 24.05.2., guix-commits, 2024/07/16
- 281/465: gnu: libkcompactdisc: Update to 24.05.2., guix-commits, 2024/07/16
- 234/465: gnu: ksquares: Update to 24.05.2., guix-commits, 2024/07/16
- 285/465: gnu: dragon: Update to 24.05.2., guix-commits, 2024/07/16
- 293/465: gnu: libkleo: Update to 24.05.2., guix-commits, 2024/07/16
- 316/465: gnu: libkdcraw: Update to 24.05.2., guix-commits, 2024/07/16
- 305/465: gnu: khealthcertificate: Update to 24.05.2., guix-commits, 2024/07/16
- 304/465: gnu: Add merkuro., guix-commits, 2024/07/16
- 298/465: gnu: kcalendarsupport: Update to 24.05.2., guix-commits, 2024/07/16