guix-commits
[Top][All Lists]
Advanced

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

02/02: gnu: pcmanfm-qt: Fix opening files by double-click.


From: guix-commits
Subject: 02/02: gnu: pcmanfm-qt: Fix opening files by double-click.
Date: Sat, 11 Jan 2020 15:28:33 -0500 (EST)

mbakke pushed a commit to branch master
in repository guix.

commit 13efb24850bc40fab2448771c87c77c9a69fc231
Author: Reza Alizadeh Majd <address@hidden>
AuthorDate: Tue Jan 7 11:24:05 2020 +0330

    gnu: pcmanfm-qt: Fix opening files by double-click.
    
    Fixes <https://bugs.gnu.org/38926>.
    
    * gnu/packages/lxqt.scm (pcmanfm-qt)[arguments]: Add phase to wrap the
    executable with the GIO_LAUNCH_DESKTOP environment variable.
    [inputs]: Add GLIB:BIN.
    
    Signed-off-by: Marius Bakke <address@hidden>
---
 gnu/packages/lxqt.scm | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/gnu/packages/lxqt.scm b/gnu/packages/lxqt.scm
index 5a3708e..b23d2e1 100644
--- a/gnu/packages/lxqt.scm
+++ b/gnu/packages/lxqt.scm
@@ -7,7 +7,7 @@
 ;;; Copyright © 2018, 2019 Tobias Geerinckx-Rice <address@hidden>
 ;;; Copyright © 2018, 2019 Meiyo Peng <address@hidden>
 ;;; Copyright © 2018 Ricardo Wurmus <address@hidden>
-;;; Copyright © 2019 Reza Alizadeh Majd <address@hidden>
+;;; Copyright © 2019, 2020 Reza Alizadeh Majd <address@hidden>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -984,7 +984,8 @@ components to build desktop file managers which belongs to 
LXDE.")
         (base32 "0x3c25inlxll965xszx37mnl5gp3smm2h7x04f67z0qlh3vsbrjq"))))
     (build-system cmake-build-system)
     (inputs
-     `(("libfm-qt" ,libfm-qt)
+     `(("glib:bin" ,glib "bin")
+       ("libfm-qt" ,libfm-qt)
        ("qtbase" ,qtbase)
        ("qtx11extras" ,qtx11extras)))
     (native-inputs
@@ -1000,7 +1001,17 @@ components to build desktop file managers which belongs 
to LXDE.")
              (substitute* '("autostart/CMakeLists.txt")
                (("DESTINATION \"\\$\\{LXQT_ETC_XDG_DIR\\}")
                 "DESTINATION \"etc/xdg"))
-             #t)))))
+             #t))
+         (add-after 'install 'wrap-glib
+           (lambda* (#:key outputs inputs #:allow-other-keys)
+             (let* ((out  (assoc-ref outputs "out"))
+                    (glib (assoc-ref inputs "glib:bin"))
+                    (gio-exe-path (string-append glib 
"/bin/gio-launch-desktop")))
+               (if (file-exists? gio-exe-path)
+                 (wrap-program (string-append out "/bin/pcmanfm-qt")
+                   `("GIO_LAUNCH_DESKTOP" = (,gio-exe-path)))
+                 (error "could not find gio-launch-desktop"))
+               #t))))))
     (home-page "https://lxqt.org/";)
     (synopsis "File manager and desktop icon manager")
     (description "PCManFM-Qt is the Qt port of PCManFM, the file manager of



reply via email to

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