fix(browsers): fix makeFirefoxProfileBin WM_CLASS handling

This commit is contained in:
Felix Schröter 2022-03-05 11:39:20 +01:00
parent 7ef5504afa
commit a643269597
Signed by: felschr
GPG key ID: 671E39E6744C807D

View file

@ -87,15 +87,11 @@ in {
}; };
home.packages = let home.packages = let
escapeDesktopArg = arg:
replaceStrings [ ''"'' ] [ ''"\""'' ] (toString arg);
makeFirefoxProfileBin = args@{ profile, ... }: makeFirefoxProfileBin = args@{ profile, ... }:
let let
name = "firefox-${profile}"; name = "firefox-${profile}";
scriptBin = pkgs.writeScriptBin name '' scriptBin = pkgs.writeScriptBin name ''
firefox -p "${escapeDesktopArg profile}" --class="${ firefox -P "${profile}" --name="${name}" $@
escapeDesktopArg name
}" $@
''; '';
desktopFile = pkgs.makeDesktopItem ((removeAttrs args [ "profile" ]) desktopFile = pkgs.makeDesktopItem ((removeAttrs args [ "profile" ])
// { // {