From 5d1c3bad5c629f3fa588155e3afbf2b1cc9e8603 Mon Sep 17 00:00:00 2001 From: Ashvith Shetty Date: Thu, 8 Aug 2024 23:58:44 +0530 Subject: gnu: librewolf: Use distinct WM Class. Make desktop environments properly render the icon and not conflate LibreWolf with other browsers with the "Navigator" class. A similar fix to IceCat was pushed as commit be1d05c10766a979dd0720b677889ed950d3b895. * gnu/packages/librewolf.scm (librewolf)[arguments]: Set both the MOZ_APP_REMOTINGNAME environment variable and librewolf.desktop's StartupWMClass to "LibreWolf". Change-Id: I3e117f99ee25321fe3a40ad67450460971579d71 --- gnu/packages/librewolf.scm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gnu/packages') diff --git a/gnu/packages/librewolf.scm b/gnu/packages/librewolf.scm index 3e464777244..45fbb84e4fa 100644 --- a/gnu/packages/librewolf.scm +++ b/gnu/packages/librewolf.scm @@ -23,6 +23,7 @@ ;;; Copyright © 2023 Tomas Volf ;;; Copyright © 2023 Ian Eure ;;; Copyright © 2024 Remco van 't Veer +;;; Copyright © 2024 Ashvith Shetty ;;; ;;; This file is part of GNU Guix. ;;; @@ -413,6 +414,7 @@ (setenv "CC" "clang") (setenv "CXX" "clang++") (setenv "MOZ_NOSPAM" "1") + (setenv "MOZ_APP_REMOTINGNAME" "LibreWolf") (setenv "MOZ_APP_NAME" "librewolf") (setenv "MOZBUILD_STATE_PATH" @@ -626,8 +628,7 @@ (("-NewPrivateWindow") "-new-private-window") (("StartupNotify=true") - "StartupNotify=true -StartupWMClass=Navigator")) + "StartupNotify=true\nStartupWMClass=LibreWolf")) (copy-file desktop-file "librewolf.desktop") (install-file "librewolf.desktop" applications)))) (add-after 'install-desktop-entry 'install-icons -- cgit v1.2.3