about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2022-03-21 15:20:36 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2022-03-23 02:13:20 +0100
commit3ec7f8d487042210c6861ea618aef73d932faac5 (patch)
tree11c372947f50de02b272f11e889e24f56d3e89ac /pkgs
parent16129972c067a3142670dd74d60a707f3a9d1b56 (diff)
downloadnixlib-3ec7f8d487042210c6861ea618aef73d932faac5.tar
nixlib-3ec7f8d487042210c6861ea618aef73d932faac5.tar.gz
nixlib-3ec7f8d487042210c6861ea618aef73d932faac5.tar.bz2
nixlib-3ec7f8d487042210c6861ea618aef73d932faac5.tar.lz
nixlib-3ec7f8d487042210c6861ea618aef73d932faac5.tar.xz
nixlib-3ec7f8d487042210c6861ea618aef73d932faac5.tar.zst
nixlib-3ec7f8d487042210c6861ea618aef73d932faac5.zip
firefox: set consistent remoting name
With Firefox 98.0 the remoting name now depends on the update channel
(mozbz#1752418), which resulted in a weird app_id/wmclass of
`firefox-default`, which broke window association in GNOME and likely
other desktops.

Fixes: #165107
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/networking/browsers/firefox/common.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/applications/networking/browsers/firefox/common.nix b/pkgs/applications/networking/browsers/firefox/common.nix
index cace1829ccc5..019c623e100a 100644
--- a/pkgs/applications/networking/browsers/firefox/common.nix
+++ b/pkgs/applications/networking/browsers/firefox/common.nix
@@ -224,6 +224,9 @@ buildStdenv.mkDerivation ({
     configureScript="$(realpath ./mach) configure"
     export MOZBUILD_STATE_PATH=$(pwd)/mozbuild
 
+    # Set consistent remoting name to ensure wmclass matches with desktop file
+    export MOZ_APP_REMOTINGNAME="${binaryName}"
+
   '' + (lib.optionalString (lib.versionAtLeast version "95.0") ''
     # RBox WASM Sandboxing
     export WASM_CC=${pkgsCross.wasi32.stdenv.cc}/bin/${pkgsCross.wasi32.stdenv.cc.targetPrefix}cc