all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#67831] [PATCH v2] services: xorg: Find sessions from guix home directory.
@ 2023-12-15  0:36 Feng Shu
  2023-12-15  0:52 ` [bug#67831] repeat with: https://issues.guix.gnu.org/67738 Feng Shu
  0 siblings, 1 reply; 2+ messages in thread
From: Feng Shu @ 2023-12-15  0:36 UTC (permalink / raw)
  To: 67831

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: [PATCH v2] services: xorg: Find sessions from guix home directory. --]
[-- Type: text/x-patch, Size: 1349 bytes --]

From 0e3968aff482ed8ef912f02b744631bb8899f9e4 Mon Sep 17 00:00:00 2001
From: Feng Shu <tumashu@163.com>
Date: Thu, 14 Dec 2023 10:58:02 +0800
Subject: [PATCH v2] services: xorg: Find sessions from guix home directory.

* gnu/services/xorg.scm (xinitrc): Find sessions from guix home directory.
---
 gnu/services/xorg.scm | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/gnu/services/xorg.scm b/gnu/services/xorg.scm
index f8cf9f25b6..9235295dd6 100644
--- a/gnu/services/xorg.scm
+++ b/gnu/services/xorg.scm
@@ -458,6 +458,11 @@ (define user-profile
                  (lambda (pw)
                    (string-append (passwd:dir pw) "/.guix-profile"))))
 
+        (define guix-home-profile
+          (and=> (getpw (getuid))
+                 (lambda (pw)
+                   (string-append (passwd:dir pw) "/.guix-home/profile"))))
+
         (define (xsession-command desktop-file)
           ;; Read from DESKTOP-FILE its X session command and return it as a
           ;; list.
@@ -503,6 +508,7 @@ (define (find-session profile)
               (apply exec-from-login-shell
                      (or session
                          (find-session user-profile)
+                         (find-session guix-home-profile)
                          (find-session system-profile)))))))
 
   (program-file "xinitrc" builder))
-- 
2.39.2





^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [bug#67831] repeat with: https://issues.guix.gnu.org/67738
  2023-12-15  0:36 [bug#67831] [PATCH v2] services: xorg: Find sessions from guix home directory Feng Shu
@ 2023-12-15  0:52 ` Feng Shu
  0 siblings, 0 replies; 2+ messages in thread
From: Feng Shu @ 2023-12-15  0:52 UTC (permalink / raw)
  To: 67831


Sorry, it repeat with: https://issues.guix.gnu.org/67738

-- 





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-15  0:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-12-15  0:36 [bug#67831] [PATCH v2] services: xorg: Find sessions from guix home directory Feng Shu
2023-12-15  0:52 ` [bug#67831] repeat with: https://issues.guix.gnu.org/67738 Feng Shu

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.