Skip to content
Snippets Groups Projects
Unverified Commit 964ba656 authored by Jonathan Brielmaier's avatar Jonathan Brielmaier Committed by Marius Bakke
Browse files

gnu: icedove: Add a desktop file.


* gnu/packages/gnuzilla.scm (icedove)[phases]: Add install-desktop-file phase.

Signed-off-by: default avatarMarius Bakke <mbakke@fastmail.com>
parent 4c1f5ea3
No related branches found
No related tags found
No related merge requests found
...@@ -1344,6 +1344,32 @@ (define-public icedove ...@@ -1344,6 +1344,32 @@ (define-public icedove
(lambda _ (invoke "./mach" "build"))) (lambda _ (invoke "./mach" "build")))
(replace 'install (replace 'install
(lambda _ (invoke "./mach" "install"))) (lambda _ (invoke "./mach" "install")))
;; Thunderbird doesn't provide any .desktop file.
;; See https://bugzilla.mozilla.org/show_bug.cgi?id=1637575
(add-after 'install 'install-desktop-file
(lambda* (#:key outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(apps (string-append out "/share/applications")))
(mkdir-p apps)
(with-output-to-file (string-append apps "/icedove.desktop")
(lambda _
(format #t
"[Desktop Entry]~@
Name=Icedove~@
Exec=~a/bin/icedove~@
Icon=icedove~@
GenericName=Mail/News Client~@
Categories=Network;Email;~@
Terminal=false~@
StartupNotify=true~@
MimeType=x-scheme-handler/mailto;~@
Type=Application~@
Actions=ComposeMessage;~@
[Desktop Action ComposeMessage]~@
Name=Write new message~@
Exec=~@*~a/bin/icedove -compose~%"
out))))
#t))
(add-after 'install 'wrap-program (add-after 'install 'wrap-program
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment