diff options
author | Arun Isaac <arunisaac@systemreboot.net> | 2024-06-19 23:26:35 +0100 |
---|---|---|
committer | jgart <jgart@dismail.de> | 2024-06-19 20:10:13 -0500 |
commit | 7172532598410de431425bef82738f3d8bad6bf3 (patch) | |
tree | fe6fc6791a5d82897c1f7da24f8714d84faf4edc | |
parent | e1a66d2ddd9b5ab382569f3a1130508797844d3b (diff) | |
download | guix-7172532598410de431425bef82738f3d8bad6bf3.tar.gz guix-7172532598410de431425bef82738f3d8bad6bf3.zip |
gnu: emacs-notmuch: Install desktop files.
* gnu/packages/mail.scm (emacs-notmuch)[arguments]: Add install-desktop-files
phase.
Change-Id: I9f3a049acb7062807a58d95ca526813caab0d563
Signed-off-by: jgart <jgart@dismail.de>
-rw-r--r-- | gnu/packages/mail.scm | 18 |
1 files changed, 17 insertions, 1 deletions
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 @@ ing, and tagging large collections of email messages.") (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 |