From 66599e2e775f16703e65e446d31b8fc75d308525 Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 31 Oct 2025 12:20:28 +0900 Subject: [PATCH] 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 Change-Id: I1fcc0829a4d079e4154be2f186bf9bab4da92e3f --- gnu/local.mk | 1 + gnu/packages/gnuzilla.scm | 4 +++- .../patches/icecat-adjust-mozilla-desktop.patch | 15 +++++++++++++++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/icecat-adjust-mozilla-desktop.patch diff --git a/gnu/local.mk b/gnu/local.mk index abedd37ff7a..9ba15ccbcf9 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -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 \ diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm index 259f9a6fc6e..b54189a56a9 100644 --- a/gnu/packages/gnuzilla.scm +++ b/gnu/packages/gnuzilla.scm @@ -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 diff --git a/gnu/packages/patches/icecat-adjust-mozilla-desktop.patch b/gnu/packages/patches/icecat-adjust-mozilla-desktop.patch new file mode 100644 index 00000000000..263c5e3846a --- /dev/null +++ b/gnu/packages/patches/icecat-adjust-mozilla-desktop.patch @@ -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