* [bug#45661] Install TeXmac's desktop file
@ 2021-01-04 18:49 Maxime Devos
2021-01-07 10:40 ` bug#45661: " Ludovic Courtès
0 siblings, 1 reply; 2+ messages in thread
From: Maxime Devos @ 2021-01-04 18:49 UTC (permalink / raw)
To: 45661
[-- Attachment #1.1: Type: text/plain, Size: 296 bytes --]
Hi Guix!
This patch adjusts the package definition
to install the .desktop file of TeXmacs. Previously,
TeXmacs didn't show up in GNOME Shell, but now it does!
--
Maxime Devos <maximedevos@telenet.be>
PGP Key: C1F3 3EE2 0C52 8FDB 7DD7 011F 49E3 EE22 1917 25EE
Freenode handle: mdevos
[-- Attachment #1.2: Type: text/x-patch, Size: 1607 bytes --]
From 15ea12a7437095f934b48f11abf9e263eb2e80f0 Mon Sep 17 00:00:00 2001
From: Maxime Devos <maximedevos@telenet.be>
Date: Mon, 4 Jan 2021 19:44:45 +0100
Subject: [PATCH] gnu: texmacs: Install desktop file.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* gnu/packages/text-editors.scm (texmacs)[arguments]: Add
‘install-desktop-file’ phase.
---
gnu/packages/text-editors.scm | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/gnu/packages/text-editors.scm b/gnu/packages/text-editors.scm
index 749b93e29f..81915ca52b 100644
--- a/gnu/packages/text-editors.scm
+++ b/gnu/packages/text-editors.scm
@@ -12,6 +12,7 @@
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
;;; Copyright © 2020 Tom Zander <tomz@freedommail.ch>
;;; Copyright © 2020 Mark Meyer <mark@ofosos.org>
+;;; Copyright © 2020 Maxime Devos <maximedevos@telenet.be>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -788,6 +789,14 @@ editors.")
(("/usr/share")
(string-append out "/share")))
#t)))
+ (add-after 'install 'install-desktop-file
+ (lambda* (#:key outputs #:allow-other-keys)
+ ;; Install desktop file.
+ (let* ((out (assoc-ref outputs "out"))
+ (apps (string-append out "/share/applications"))
+ (source "TeXmacs/misc/mime/texmacs.desktop"))
+ (install-file source apps)
+ #t)))
(add-before 'configure 'gzip-flags
(lambda _
(substitute* "Makefile.in"
--
2.29.2
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 260 bytes --]
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#45661: Install TeXmac's desktop file
2021-01-04 18:49 [bug#45661] Install TeXmac's desktop file Maxime Devos
@ 2021-01-07 10:40 ` Ludovic Courtès
0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2021-01-07 10:40 UTC (permalink / raw)
To: Maxime Devos; +Cc: 45661-done
Hi,
Maxime Devos <maximedevos@telenet.be> skribis:
> From 15ea12a7437095f934b48f11abf9e263eb2e80f0 Mon Sep 17 00:00:00 2001
> From: Maxime Devos <maximedevos@telenet.be>
> Date: Mon, 4 Jan 2021 19:44:45 +0100
> Subject: [PATCH] gnu: texmacs: Install desktop file.
> MIME-Version: 1.0
> Content-Type: text/plain; charset=UTF-8
> Content-Transfer-Encoding: 8bit
>
> * gnu/packages/text-editors.scm (texmacs)[arguments]: Add
> ‘install-desktop-file’ phase.
Applied, thanks!
Ludo’.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-07 10:41 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-04 18:49 [bug#45661] Install TeXmac's desktop file Maxime Devos
2021-01-07 10:40 ` bug#45661: " Ludovic Courtès
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).