unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#41256] [PATCH] gnu: icedove: Add a desktop file.
@ 2020-05-14 11:49 Jonathan Brielmaier
  2020-05-14 12:50 ` Ricardo Wurmus via web
  2020-05-23 19:16 ` bug#41256: " Marius Bakke
  0 siblings, 2 replies; 7+ messages in thread
From: Jonathan Brielmaier @ 2020-05-14 11:49 UTC (permalink / raw)
  To: 41256; +Cc: Jonathan Brielmaier

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





^ permalink raw reply related	[flat|nested] 7+ messages in thread

* [bug#41256] [PATCH] gnu: icedove: Add a desktop file.
  2020-05-14 11:49 [bug#41256] [PATCH] gnu: icedove: Add a desktop file Jonathan Brielmaier
@ 2020-05-14 12:50 ` Ricardo Wurmus via web
  2020-05-15  8:56   ` Jonathan Brielmaier
  2020-05-23 19:16 ` bug#41256: " Marius Bakke
  1 sibling, 1 reply; 7+ messages in thread
From: Ricardo Wurmus via web @ 2020-05-14 12:50 UTC (permalink / raw)
  To: 41256

This looks good to me!





^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#41256] [PATCH] gnu: icedove: Add a desktop file.
  2020-05-14 12:50 ` Ricardo Wurmus via web
@ 2020-05-15  8:56   ` Jonathan Brielmaier
  0 siblings, 0 replies; 7+ messages in thread
From: Jonathan Brielmaier @ 2020-05-15  8:56 UTC (permalink / raw)
  To: Ricardo Wurmus via web, 41256

so is this good for push? I cannot do that myself.

On 14.05.20 14:50, Ricardo Wurmus via web wrote:
> This looks good to me!
>
>
>
>




^ permalink raw reply	[flat|nested] 7+ messages in thread

* bug#41256: [PATCH] gnu: icedove: Add a desktop file.
  2020-05-14 11:49 [bug#41256] [PATCH] gnu: icedove: Add a desktop file Jonathan Brielmaier
  2020-05-14 12:50 ` Ricardo Wurmus via web
@ 2020-05-23 19:16 ` Marius Bakke
  2020-05-23 19:56   ` [bug#41256] " Nicolas Goaziou
  1 sibling, 1 reply; 7+ messages in thread
From: Marius Bakke @ 2020-05-23 19:16 UTC (permalink / raw)
  To: Jonathan Brielmaier, 41256-done; +Cc: Jonathan Brielmaier

[-- Attachment #1: Type: text/plain, Size: 334 bytes --]

Jonathan Brielmaier <jonathan.brielmaier@web.de> 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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#41256] [PATCH] gnu: icedove: Add a desktop file.
  2020-05-23 19:16 ` bug#41256: " Marius Bakke
@ 2020-05-23 19:56   ` Nicolas Goaziou
  2020-05-23 20:18     ` Marius Bakke
  2020-05-23 21:47     ` Jonathan Brielmaier
  0 siblings, 2 replies; 7+ messages in thread
From: Nicolas Goaziou @ 2020-05-23 19:56 UTC (permalink / raw)
  To: 41256; +Cc: mbakke, jonathan.brielmaier

Hello,

Marius Bakke <mbakke@fastmail.com> writes:

> Jonathan Brielmaier <jonathan.brielmaier@web.de> 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.

I'm a bit late at the party, but would it make sense to use
make-desktop-entry-file instead?

Regards,

-- 
Nicolas Goaziou




^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#41256] [PATCH] gnu: icedove: Add a desktop file.
  2020-05-23 19:56   ` [bug#41256] " Nicolas Goaziou
@ 2020-05-23 20:18     ` Marius Bakke
  2020-05-23 21:47     ` Jonathan Brielmaier
  1 sibling, 0 replies; 7+ messages in thread
From: Marius Bakke @ 2020-05-23 20:18 UTC (permalink / raw)
  To: Nicolas Goaziou, 41256; +Cc: jonathan.brielmaier

[-- Attachment #1: Type: text/plain, Size: 563 bytes --]

Nicolas Goaziou <mail@nicolasgoaziou.fr> writes:

> Hello,
>
> Marius Bakke <mbakke@fastmail.com> writes:
>
>> Jonathan Brielmaier <jonathan.brielmaier@web.de> 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.
>
> I'm a bit late at the party, but would it make sense to use
> make-desktop-entry-file instead?

Probably, yes.  :-)

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [bug#41256] [PATCH] gnu: icedove: Add a desktop file.
  2020-05-23 19:56   ` [bug#41256] " Nicolas Goaziou
  2020-05-23 20:18     ` Marius Bakke
@ 2020-05-23 21:47     ` Jonathan Brielmaier
  1 sibling, 0 replies; 7+ messages in thread
From: Jonathan Brielmaier @ 2020-05-23 21:47 UTC (permalink / raw)
  To: Nicolas Goaziou, 41256; +Cc: mbakke

On 23.05.20 21:56, Nicolas Goaziou wrote:
>>> * gnu/packages/gnuzilla.scm (icedove)[phases]: Add
>>> install-desktop-file phase.
>
> I'm a bit late at the party, but would it make sense to use
> make-desktop-entry-file instead?
Oh Nicolas that is a good catch. I didn't know this nice function :P

But I wonder how to archive the compose action:
```
[Desktop Action ComposeMessage]~@
Name=Write new message~@
Exec=~@*~a/bin/icedove -compose~%"
```

With the field `actions` but how?




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-05-23 21:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-14 11:49 [bug#41256] [PATCH] gnu: icedove: Add a desktop file Jonathan Brielmaier
2020-05-14 12:50 ` Ricardo Wurmus via web
2020-05-15  8:56   ` Jonathan Brielmaier
2020-05-23 19:16 ` bug#41256: " Marius Bakke
2020-05-23 19:56   ` [bug#41256] " Nicolas Goaziou
2020-05-23 20:18     ` Marius Bakke
2020-05-23 21:47     ` Jonathan Brielmaier

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).