gnu: lxqt-session: Fix xsession entry exec path.
authorReza Alizadeh Majd <r.majd@pantherx.org>
Fri, 16 Oct 2020 11:16:23 +0000 (14:46 +0330)
committerOleg Pykhalov <go.wigust@gmail.com>
Mon, 19 Oct 2020 21:16:43 +0000 (00:16 +0300)
* 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>
gnu/packages/lxqt.scm

index af452a9..67b75ce 100644 (file)
@@ -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 _