* [bug#71658] [PATCH] gnu: emacs-notmuch: Install desktop files.
@ 2024-06-19 22:26 Arun Isaac
2024-06-20 2:14 ` bug#71658: " jgart via Guix-patches via
0 siblings, 1 reply; 2+ messages in thread
From: Arun Isaac @ 2024-06-19 22:26 UTC (permalink / raw)
To: 71658; +Cc: Arun Isaac
* gnu/packages/mail.scm (emacs-notmuch)[arguments]: Add install-desktop-files
phase.
Change-Id: I9f3a049acb7062807a58d95ca526813caab0d563
---
gnu/packages/mail.scm | 18 +++++++++++++++++-
1 file changed, 17 insertions(+), 1 deletion(-)
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index d853fab4d3..fe2135a22d 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -1512,7 +1512,23 @@ (define-public emacs-notmuch
(let ((notmuch (search-input-file inputs "/bin/notmuch")))
(substitute* "notmuch-lib.el"
(("\"notmuch\"")
- (string-append "\"" notmuch "\"")))))))))
+ (string-append "\"" notmuch "\""))))))
+ ;; Install desktop files so that mailto URIs can be opened using
+ ;; emacs-notmuch.
+ (add-after 'install 'install-desktop-files
+ (lambda* (#:key inputs #:allow-other-keys)
+ (install-file "notmuch-emacs-mua"
+ (string-append #$output "/bin"))
+ (let ((applications (string-append #$output "/share/applications")))
+ (install-file "notmuch-emacs-mua.desktop"
+ applications)
+ (copy-file "notmuch-emacs-mua.desktop"
+ (string-append applications
+ "/notmuch-emacsclient-mua.desktop"))
+ (substitute* (string-append applications
+ "/notmuch-emacsclient-mua.desktop")
+ (("Exec=notmuch-emacs-mua" all)
+ (string-append all " --client")))))))))
(synopsis "Run Notmuch within Emacs")
(description
"This package provides an Emacs-based interface to the Notmuch mail
base-commit: e32e3d0a03dc17c4c54a91aad053c9036998b601
--
2.45.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* bug#71658: [PATCH] gnu: emacs-notmuch: Install desktop files.
2024-06-19 22:26 [bug#71658] [PATCH] gnu: emacs-notmuch: Install desktop files Arun Isaac
@ 2024-06-20 2:14 ` jgart via Guix-patches via
0 siblings, 0 replies; 2+ messages in thread
From: jgart via Guix-patches via @ 2024-06-20 2:14 UTC (permalink / raw)
To: 71658-done; +Cc: Arun Isaac
Applied!
thanks for adding that,
jgart
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-06-20 2:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-19 22:26 [bug#71658] [PATCH] gnu: emacs-notmuch: Install desktop files Arun Isaac
2024-06-20 2:14 ` bug#71658: " jgart via Guix-patches via
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).