summary refs log tree commit diff
diff options
context:
space:
mode:
authorReza Alizadeh Majd <r.majd@pantherx.org>2020-10-16 14:46:23 +0330
committerOleg Pykhalov <go.wigust@gmail.com>2020-10-20 00:16:43 +0300
commit9aa35795d3379de2ee2f0a6fffae61331a4da344 (patch)
treea28083346741ef9eb99b3c1f62c6e4bcc1e9da4d
parent87f31bf2a85f48721c5be87fb2ca56c29306df42 (diff)
downloadguix-9aa35795d3379de2ee2f0a6fffae61331a4da344.tar.gz
gnu: lxqt-session: Fix xsession entry exec path.
* gnu/packages/lxqt.scm (lxqt-session)[arguments]: Update path for
"startlxqt" to be able to executed properly by "gdm".

Signed-off-by: Oleg Pykhalov <go.wigust@gmail.com>
-rw-r--r--gnu/packages/lxqt.scm8
1 files 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 system.")
        #:phases
        (modify-phases %standard-phases
          (add-after 'unpack 'patch-source
-           (lambda _
+           (lambda* (#:key outputs #:allow-other-keys)
              (substitute* '("autostart/CMakeLists.txt"
                             "config/CMakeLists.txt")
                (("DESTINATION \"\\$\\{LXQT_ETC_XDG_DIR\\}")
                 "DESTINATION \"etc/xdg"))
-             #t))
+             (let ((out (assoc-ref outputs "out")))
+               (substitute* '("xsession/lxqt.desktop.in")
+                 (("Exec=startlxqt") (string-append "Exec=" out "/bin/startlxqt"))
+                 (("TryExec=lxqt-session") (string-append "TryExec=" out "/bin/startlxqt")))
+               #t)))
          ;; add write permission to lxqt-rc.xml file which is stored as read-only in store
          (add-after 'unpack 'patch-openbox-permission
            (lambda _