~ruther/guix-local

66599e2e775f16703e65e446d31b8fc75d308525 — Maxim Cournoyer 5 months ago e08fffc
gnu: icecat: Patch to .desktop file, to fix opening file or links.

* gnu/packages/patches/icecat-adjust-mozilla-desktop.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/gnuzilla.scm (icecat-minimal)
[#phases] {apply-guix-specific-patches}: Apply it.

Fixes: #3566
Suggested-by: Ron Nazarov <ron@noisytoot.org>
Change-Id: I1fcc0829a4d079e4154be2f186bf9bab4da92e3f
M gnu/local.mk => gnu/local.mk +1 -0
@@ 1583,6 1583,7 @@ dist_patch_DATA =						\
  %D%/packages/patches/hurd-startup.patch			\
  %D%/packages/patches/hwloc-1-test-btrfs.patch			\
  %D%/packages/patches/i7z-gcc-10.patch				\
  %D%/packages/patches/icecat-adjust-mozilla-desktop.patch      \
  %D%/packages/patches/icecat-makeicecat.patch			\
  %D%/packages/patches/icecat-avoid-bundled-libraries.patch	\
  %D%/packages/patches/icecat-compare-paths.patch		\

M gnu/packages/gnuzilla.scm => gnu/packages/gnuzilla.scm +3 -1
@@ 941,7 941,9 @@ preferences/advanced-scripts.dtd"
                 #$(local-file
                    (search-patch "icecat-use-system-wide-dir.patch"))
                 #$(local-file
                    (search-patch "icecat-fhs-configure-option.patch"))))))
                    (search-patch "icecat-fhs-configure-option.patch"))
                 #$(local-file
                    (search-patch "icecat-adjust-mozilla-desktop.patch"))))))
          (add-after 'apply-guix-specific-patches 'remove-bundled-libraries
            (lambda _
              ;; Remove bundled libraries that we don't use, since they may

A gnu/packages/patches/icecat-adjust-mozilla-desktop.patch => gnu/packages/patches/icecat-adjust-mozilla-desktop.patch +15 -0
@@ 0,0 1,15 @@
Upstream-status: https://phabricator.services.mozilla.com/D270791

diff --git a/toolkit/mozapps/installer/linux/rpm/mozilla.desktop b/toolkit/mozapps/installer/linux/rpm/mozilla.desktop
index 79048fcf7c94..13c103f683b0 100644
--- a/toolkit/mozapps/installer/linux/rpm/mozilla.desktop
+++ b/toolkit/mozapps/installer/linux/rpm/mozilla.desktop
@@ -8,7 +8,7 @@ Version=1.0
 Name=@MOZ_APP_DISPLAYNAME@
 GenericName=Web Browser
 Comment=Your web, the way you like it
-Exec=@MOZ_APP_NAME@
+Exec=@MOZ_APP_NAME@ %u
 Icon=@MOZ_APP_NAME@
 Terminal=false
 Type=Application