From 65af293c3736b2147c0af764414f2efe720e521e Mon Sep 17 00:00:00 2001 From: Feng Shu Date: Thu, 14 Dec 2023 11:02:51 +0800 Subject: services: xorg: ‘dbus-daemon-wrapper’ handles Home profile. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * gnu/services/xorg.scm (dbus-daemon-wrapper): Handle Home profile. Co-authored-by: Ludovic Courtès Change-Id: Ib2f2330b7ea017ddf33d636de71aaa1c316808cb --- gnu/services/xorg.scm | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'gnu') diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm index f8cf9f25b6..1ee15ea90c 100644 --- a/gnu/services/xorg.scm +++ b/gnu/services/xorg.scm @@ -981,6 +981,11 @@ argument."))) (lambda (pw) (string-append (passwd:dir pw) "/.guix-profile")))) + (define home-profile + (and=> (getpw (getuid)) + (lambda (pw) + (string-append (passwd:dir pw) "/.guix-home/profile")))) + ;; If we are able to find the user's profile, we can add it to ;; the search paths set below. We need to do this so that D-Bus ;; can start services installed by the user. This allows @@ -988,9 +993,13 @@ argument."))) ;; 'evolution') to work even if those services are only available ;; in the user's profile. See . (define profiles - (if user-profile - (list user-profile system-profile) - (list system-profile))) + (append (if home-profile + (list home-profile) + '()) + (if user-profile + (list user-profile) + '()) + (list system-profile))) (setenv "XDG_CONFIG_DIRS" (string-join (map (cut string-append <> "/etc/xdg") profiles) -- cgit v1.2.3 alue='range'>range
AgeCommit message (Expand)Author
2013-12-01gnu: Synchronize descriptions with 'gnumaint'.Ludovic Courtès
2013-11-03gnu: liboop: fix deplibs check method for mips64....Mark H Weaver
2013-10-09Synchronize package descriptions with the Womb....Ludovic Courtès
2013-07-01gnu: liboop: Fix & improve meta-data....Ludovic Courtès
2013-06-27gnu: lsh: Upgrade to 2.1....Ludovic Courtès
2013-04-17gnu: Use synopses from the Womb....Ludovic Courtès
2013-01-18distro: Rename (distro) to (gnu packages)....Ludovic Courtès
2013-01-18distro: Change the module name space to (gnu ...)....Ludovic Courtès