[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#44029] [PATCH 1/4] gnu: lxqt-session: fix xsession entry's exec pat

From: Reza Alizadeh Majd
Subject: [bug#44029] [PATCH 1/4] gnu: lxqt-session: fix xsession entry's exec path
Date: Fri, 16 Oct 2020 14:46:23 +0330

* gnu/packages/lxqt.scm (lxqt-session)[arguments]: update path for
startlxqt to be able to executed properly by gdm.
 gnu/packages/lxqt.scm | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/lxqt.scm b/gnu/packages/lxqt.scm
index af452a9903..67b75ced1e 100644
--- a/gnu/packages/lxqt.scm
+++ b/gnu/packages/lxqt.scm
@@ -849,12 +849,16 @@ allows for launching applications or shutting down the 
        (modify-phases %standard-phases
          (add-after 'unpack 'patch-source
-           (lambda _
+           (lambda* (#:key outputs #:allow-other-keys)
              (substitute* '("autostart/CMakeLists.txt"
                (("DESTINATION \"\\$\\{LXQT_ETC_XDG_DIR\\}")
                 "DESTINATION \"etc/xdg"))
-             #t))
+             (let ((out (assoc-ref outputs "out")))
+               (substitute* '("xsession/")
+                 (("Exec=startlxqt") (string-append "Exec=" out 
+                 (("TryExec=lxqt-session") (string-append "TryExec=" out 
+               #t)))
          ;; add write permission to lxqt-rc.xml file which is stored as 
read-only in store
          (add-after 'unpack 'patch-openbox-permission
            (lambda _

reply via email to

[Prev in Thread] Current Thread [Next in Thread]