Subject: bug#39125: closed (Re: [bug#39125] [PATCH] gnu: termite: Open links properly without xdg-utils in profile)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 27 Jan 2020 23:22:02 +0000

Your bug report

#39125: [PATCH] gnu: termite: Open links properly without xdg-utils in profile

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
39125: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=39125
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: [bug#39125] [PATCH] gnu: termite: Open links properly without xdg-utils in profile
From: Marius Bakke <[email-masked]>
To: Jakub Kądziołka <[email-masked]>, [email-masked]
Date: Tue, 28 Jan 2020 00:21:41 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Jakub Kądziołka <[email-masked]> writes:

> * gnu/packages/terminals.scm (termite)[inputs]: Add XDG-UTILS.
>   [arguments](patch-xdg-open): New phase.

Applied, thanks!

Subject: [PATCH] gnu: termite: Open links properly without xdg-utils in profile
From: Jakub Kądziołka <[email-masked]>
To: [email-masked]
Date: Tue, 14 Jan 2020 00:50:37 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

* gnu/packages/terminals.scm (termite)[inputs]: Add XDG-UTILS.
  [arguments](patch-xdg-open): New phase.
---
 gnu/packages/terminals.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/gnu/packages/terminals.scm b/gnu/packages/terminals.scm
index b5c3b69f53..dae14aee8f 100644
--- a/gnu/packages/terminals.scm
+++ b/gnu/packages/terminals.scm
@@ -17,6 +17,7 @@
 ;;; Copyright © 2019 Julien Lepiller <[email-masked]>
 ;;; Copyright © 2019 Pierre Langlois <[email-masked]>
 ;;; Copyright © 2019 Brett Gilio <[email-masked]>
+;;; Copyright © 2020 Jakub Kądziołka <[email-masked]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -138,6 +139,11 @@ configurable through a graphical wizard.")
     (arguments
       `(#:phases
         (modify-phases %standard-phases
+          (add-after 'unpack 'patch-xdg-open
+            (lambda _
+              (substitute* "termite.cc"
+                (("xdg-open") (which "xdg-open")))
+              #t))
           (delete 'configure))
         #:tests? #f
         ;; This sets the destination when installing the necessary terminal
@@ -150,6 +156,7 @@ configurable through a graphical wizard.")
     (inputs
      `(("vte" ,vte-ng)
        ("gtk+" ,gtk+)
+       ("xdg-utils" ,xdg-utils)
        ("ncurses" ,ncurses)))
     (native-inputs
      `(("pkg-config" ,pkg-config)))
-- 
2.24.1