aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gnu/services/sddm.scm17
1 files 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)))))
and oc translations for the 'packages' component....Maxim Cournoyer 2021-05-03nls: Do not update po files on first make invocation....Julien Lepiller 2021-04-18nls: Remove 'vi' in LINGUAS...Julien Lepiller 2021-04-18nls: Add Korean translation....Julien Lepiller 2021-04-18nls: Add Persian translation....Julien Lepiller 2021-04-18nls: Add Slovak translation....Julien Lepiller 2021-04-18nls: Update 'pt_BR' translation.Julien Lepiller 2021-04-18nls: Remove Vietnamese translations of packages....Julien Lepiller 2021-04-18nls: Update 'zh_CN' translations.Julien Lepiller 2021-04-18nls: Update 'sr' translations.Julien Lepiller 2021-04-18nls: Update 'pl' translations.Julien Lepiller 2021-04-18nls: Update 'hu' translations.Julien Lepiller 2021-04-18nls: Update 'da' translations.Julien Lepiller 2021-04-18nls: Update 'eo' translations.Julien Lepiller 2021-04-18nls: Update 'es' translations.Julien Lepiller 2021-04-18nls: Update 'de' translations.Julien Lepiller 2021-04-18nls: Update 'fr' translations.Julien Lepiller 2021-02-12services: Add transmission-daemon service....Simon South 2021-01-28nls: Update 'fr' translation.Julien Lepiller 2020-11-12nls: Update string translations.Ludovic Courtès 2020-10-27nls: Update.Ludovic Courtès 2020-10-16nls: Update.Ludovic Courtès 2020-09-29nls: Fix copyright and bug address in pot files....Julien Lepiller 2020-04-14nls: Update.Ludovic Courtès 2020-04-12nls: Update.Ludovic Courtès 2020-03-23nls: Update.Ludovic Courtès