From: Danny Milosavljevic <dannym@scratchpost.org>
To: 23094@debbugs.gnu.org
Subject: bug#23094: [PATCH] Re: bug#23094: icecat is missing a desktop file
Date: Sun, 10 Apr 2016 12:04:04 +0200 [thread overview]
Message-ID: <20160410120404.0a37366e@scratchpost.org> (raw)
In-Reply-To: <20160322202004.7e9de603@scratchpost.org>
Here's a patch which adds a desktop file to icecat:
Note that there's still a maintenance problem with the icon - version "38.6.0" is currently hard-coded, so if icecat updates, it won't be able to find its icon. What is the usual way to fix this?
diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index b4892d7..2c38458 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -519,7 +519,40 @@ 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 ((applications (string-append (assoc-ref outputs "out") "/share/applications")))
+ (mkdir-p applications)
+ (call-with-output-file (string-append applications "/icecat.desktop")
+ (lambda (port)
+ (format port "~
+[Desktop Entry]~@
+Version=1.0~@
+Name=GNU IceCat~@
+GenericName=Web Browser~@
+Comment=Browse the World Wide Web~@
+Keywords=Internet;WWW;Browser;Web~@
+Exec=~a/bin/icecat %u~@
+Terminal=false~@
+X-MultipleArgs=false~@
+Type=Application~@
+Icon=~a/lib/icecat-38.6.0/browser/icons/mozicon128.png~@
+Categories=GNOME;GTK;Network;WebBrowser;~@
+MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;~@
+StartupNotify=true~@
+Actions=NewWindow;NewPrivateWindow~@
+~@
+[Desktop Action NewWindow]~@
+Name=Open a New Window~@
+Exec=~a/bin/icecat --new-window~@
+~@
+[Desktop Action NewPrivateWindow]~@
+Name=Open a New Private Window~@
+Exec=~a/bin/icecat -private-window~@
+" (assoc-ref outputs "out") (assoc-ref outputs "out") (assoc-ref outputs "out") (assoc-ref outputs "out")))))))))) ; FIXME version
(home-page "http://www.gnu.org/software/gnuzilla/")
(synopsis "Entirely free browser derived from Mozilla Firefox")
(description
next prev parent reply other threads:[~2016-04-10 10:05 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-03-22 19:20 bug#23094: icecat is missing a desktop file Danny Milosavljevic
2016-03-23 17:38 ` Leo Famulari
2016-04-10 10:04 ` Danny Milosavljevic [this message]
2016-04-16 18:15 ` bug#23094: [PATCHv2] " Danny Milosavljevic
2016-05-28 15:22 ` Ludovic Courtès
2016-05-30 21:02 ` Danny Milosavljevic
2016-05-31 13:47 ` Ludovic Courtès
2016-06-01 22:45 ` Danny Milosavljevic
2016-06-02 19:32 ` Ludovic Courtès
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160410120404.0a37366e@scratchpost.org \
--to=dannym@scratchpost.org \
--cc=23094@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.