From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?UTF-8?Q?Court=C3=A8s?=) Subject: bug#23094: [PATCHv2] Re: bug#23094: icecat is missing a desktop file Date: Sat, 28 May 2016 17:22:41 +0200 Message-ID: <87a8jaky0u.fsf@gnu.org> References: <20160322202004.7e9de603@scratchpost.org> <20160410120404.0a37366e@scratchpost.org> <20160416201516.7aeb07d7@scratchpost.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47826) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6g4u-0004jv-Ed for bug-guix@gnu.org; Sat, 28 May 2016 11:23:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b6g4s-0008Hh-DY for bug-guix@gnu.org; Sat, 28 May 2016 11:23:03 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:60848) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b6g4s-0008Hc-AF for bug-guix@gnu.org; Sat, 28 May 2016 11:23:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1b6g4s-0003zU-5a for bug-guix@gnu.org; Sat, 28 May 2016 11:23:02 -0400 Sender: "Debbugs-submit" Resent-Message-ID: In-Reply-To: <20160416201516.7aeb07d7@scratchpost.org> (Danny Milosavljevic's message of "Sat, 16 Apr 2016 20:15:16 +0200") List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: Danny Milosavljevic Cc: 23094@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi! I figured there=E2=80=99s already a desktop entry template in the source, a= nd it=E2=80=99s more complete (it includes translations), hence this patch: --=-=-= Content-Type: text/x-patch Content-Disposition: inline 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") + (("^Exec=@MOZ_APP_NAME@") + (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 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I haven=E2=80=99t been able to test it, so your feedback is welcome! Thanks, Ludo=E2=80=99. --=-=-=--