Merge PR #208315: firefox: fix desktop file and icon for variants
This commit is contained in:
@@ -31,7 +31,7 @@ let
|
||||
(lib.toUpper (lib.substring 0 1 applicationName) + lib.substring 1 (-1) applicationName)
|
||||
, nameSuffix ? ""
|
||||
, icon ? applicationName
|
||||
, wmClass ? null
|
||||
, wmClass ? applicationName
|
||||
, extraNativeMessagingHosts ? []
|
||||
, pkcs11Modules ? []
|
||||
, useGlvnd ? true
|
||||
@@ -61,7 +61,7 @@ let
|
||||
smartcardSupport = cfg.smartcardSupport or false;
|
||||
|
||||
nativeMessagingHosts =
|
||||
([ ]
|
||||
[ ]
|
||||
++ lib.optional (cfg.enableBrowserpass or false) (lib.getBin browserpass)
|
||||
++ lib.optional (cfg.enableBukubrow or false) bukubrow
|
||||
++ lib.optional (cfg.enableTridactylNative or false) tridactyl-native
|
||||
@@ -70,7 +70,7 @@ let
|
||||
++ lib.optional (cfg.enablePlasmaBrowserIntegration or false) plasma5Packages.plasma-browser-integration
|
||||
++ lib.optional (cfg.enableFXCastBridge or false) fx_cast_bridge
|
||||
++ extraNativeMessagingHosts
|
||||
);
|
||||
;
|
||||
libs = lib.optionals stdenv.isLinux [ udev libva mesa libnotify xorg.libXScrnSaver cups pciutils ]
|
||||
++ lib.optional pipewireSupport pipewire
|
||||
++ lib.optional ffmpegSupport ffmpeg_5
|
||||
@@ -168,10 +168,10 @@ let
|
||||
inherit pname version;
|
||||
|
||||
desktopItem = makeDesktopItem ({
|
||||
name = applicationName;
|
||||
exec = "${launcherName} %U";
|
||||
name = launcherName;
|
||||
exec = "${launcherName} --name ${wmClass} %U";
|
||||
inherit icon;
|
||||
desktopName = "${desktopName}${nameSuffix}";
|
||||
inherit desktopName;
|
||||
startupNotify = true;
|
||||
startupWMClass = wmClass;
|
||||
terminal = false;
|
||||
@@ -403,7 +403,7 @@ let
|
||||
disallowedRequisites = [ stdenv.cc ];
|
||||
|
||||
meta = browser.meta // {
|
||||
description = browser.meta.description;
|
||||
inherit (browser.meta) description;
|
||||
hydraPlatforms = [];
|
||||
priority = (browser.meta.priority or 0) - 1; # prefer wrapper over the package
|
||||
};
|
||||
|
||||
@@ -29796,6 +29796,7 @@ with pkgs;
|
||||
firefox-beta-bin = res.wrapFirefox firefox-beta-bin-unwrapped {
|
||||
pname = "firefox-beta-bin";
|
||||
desktopName = "Firefox Beta";
|
||||
wmClass = "firefox-beta";
|
||||
};
|
||||
|
||||
firefox-devedition-bin-unwrapped = callPackage ../applications/networking/browsers/firefox-bin {
|
||||
@@ -29808,6 +29809,7 @@ with pkgs;
|
||||
nameSuffix = "-devedition";
|
||||
pname = "firefox-devedition-bin";
|
||||
desktopName = "Firefox DevEdition";
|
||||
wmClass = "firefox-devedition";
|
||||
};
|
||||
|
||||
librewolf-unwrapped = callPackage ../applications/networking/browsers/librewolf {};
|
||||
|
||||
Reference in New Issue
Block a user