emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#41256: closed ([PATCH] gnu: icedove: Add a desktop file.)


From: GNU bug Tracking System
Subject: bug#41256: closed ([PATCH] gnu: icedove: Add a desktop file.)
Date: Sat, 23 May 2020 19:17:02 +0000

Your message dated Sat, 23 May 2020 21:16:51 +0200
with message-id <address@hidden>
and subject line Re: [bug#41256] [PATCH] gnu: icedove: Add a desktop file.
has caused the debbugs.gnu.org bug report #41256,
regarding [PATCH] gnu: icedove: Add a desktop file.
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden.)


-- 
41256: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=41256
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH] gnu: icedove: Add a desktop file. Date: Thu, 14 May 2020 13:49:53 +0200
Thunderbird upstream doesn't provide any desktop file. So we have
to create it downstream. I filed an upstream bug:
https://bugzilla.mozilla.org/show_bug.cgi?id=1637575

* gnu/packages/gnuzilla.scm (icedove)[phases]: Add install-desktop-file phase.
---
 gnu/packages/gnuzilla.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index 8a926681e0..7bf9850e97 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -1344,6 +1344,32 @@ standards of the IceCat project.")
            (lambda _ (invoke "./mach" "build")))
          (replace '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
            (lambda* (#:key inputs outputs #:allow-other-keys)
              (let* ((out (assoc-ref outputs "out"))
--
2.26.2




--- End Message ---
--- Begin Message --- Subject: Re: [bug#41256] [PATCH] gnu: icedove: Add a desktop file. Date: Sat, 23 May 2020 21:16:51 +0200 User-agent: Notmuch/0.29.3 (https://notmuchmail.org) Emacs/26.3 (x86_64-pc-linux-gnu)
Jonathan Brielmaier <address@hidden> writes:

> Thunderbird upstream doesn't provide any desktop file. So we have
> to create it downstream. I filed an upstream bug:
> https://bugzilla.mozilla.org/show_bug.cgi?id=1637575
>
> * gnu/packages/gnuzilla.scm (icedove)[phases]: Add install-desktop-file phase.

Applied, thanks!

Attachment: signature.asc
Description: PGP signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]