[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#23094: [PATCHv2] Re: bug#23094: icecat is missing a desktop file
From: |
Ludovic Courtès |
Subject: |
bug#23094: [PATCHv2] Re: bug#23094: icecat is missing a desktop file |
Date: |
Sat, 28 May 2016 17:22:41 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Hi!
I figured there’s already a desktop entry template in the source, and
it’s more complete (it includes translations), hence this patch:
diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index 7e52534..2baf4d7 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -509,7 +509,23 @@ standards.")
(format #t "configure flags: ~s~%" flags)
(zero? (apply system* bash
(string-append srcdir "/configure")
- flags))))))))
+ flags)))))
+ (add-after 'install 'install-desktop-entry
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let* ((out (assoc-ref outputs "out"))
+ (applications (string-append out "/share/applications")))
+ (mkdir-p applications)
+ (copy-file "debian/icecat.desktop.in"
+ "debian/icecat.desktop")
+ (substitute* "debian/icecat.desktop"
+ (("@MOZ_DISPLAY_NAME@")
+ "GNU IceCat")
+ (("address@hidden@")
+ (string-append "Exec=" out "/bin/icecat"))
+ (("@MOZ_APP_NAME@")
+ "icecat"))
+ (install-file "debian/icecat.desktop" applications)
+ #t))))))
(home-page "http://www.gnu.org/software/gnuzilla/")
(synopsis "Entirely free browser derived from Mozilla Firefox")
(description
I haven’t been able to test it, so your feedback is welcome!
Thanks,
Ludo’.
- bug#23094: [PATCHv2] Re: bug#23094: icecat is missing a desktop file,
Ludovic Courtès <=