From a6d95345e0aad6e707a9c7b415801c6c08e1ac7c Mon Sep 17 00:00:00 2001 From: Brice Waegeneire Date: Wed, 10 Jul 2024 21:51:20 +0200 Subject: [PATCH] nongnu: firefox: Fix WM Class. * nongnu/packages/mozilla.scm (firefox-esr)[arguments]: Set the MOZ_APP_REMOTINGNAME environment variable and replace "Navigator" with "Firefox" in firefox.desktop. Fixes #325. Signed-off-by: Jonathan Brielmaier --- nongnu/packages/mozilla.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/nongnu/packages/mozilla.scm b/nongnu/packages/mozilla.scm index 934851b..37c17b5 100644 --- a/nongnu/packages/mozilla.scm +++ b/nongnu/packages/mozilla.scm @@ -17,7 +17,7 @@ ;;; Copyright © 2020-2023 Jonathan Brielmaier ;;; Copyright © 2020 Zhu Zihao ;;; Copyright © 2021 pineapples -;;; Copyright © 2021 Brice Waegeneire +;;; Copyright © 2021, 2024 Brice Waegeneire ;;; Copyright © 2021, 2022, 2023 John Kehayias ;;; Copyright © 2022 Pierre Langlois ;;; Copyright © 2023 Tomas Volf @@ -287,6 +287,9 @@ (setenv "MOZ_NOSPAM" "1") + ;; WM_CLASS (default is "$MOZ_APP_NAME-$MOZ_UPDATE_CHANNEL"). + (setenv "MOZ_APP_REMOTINGNAME" "Firefox") + (setenv "MOZBUILD_STATE_PATH" (getcwd)) (let* ((mozconfig (string-append (getcwd) "/mozconfig")) @@ -401,7 +404,7 @@ (("NewWindow") "new-window") (("NewPrivateWindow") "new-private-window") (("StartupNotify=true") - "StartupNotify=true\nStartupWMClass=Navigator")) + "StartupNotify=true\nStartupWMClass=Firefox")) (install-file desktop-file applications)))) (add-after 'install-desktop-entry 'install-icons (lambda* (#:key outputs #:allow-other-keys)