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
escapeDesktopArg = arg:
replaceStrings [ ''"'' ] [ ''"\""'' ] (toString arg);
makeFirefoxProfileBin = args@{ profile, ... }:
let
name = "firefox-${profile}";
scriptBin = pkgs.writeScriptBin name ''
firefox -p "${escapeDesktopArg profile}" --class="${
escapeDesktopArg name
}" $@
firefox -P "${profile}" --name="${name}" $@
'';
desktopFile = pkgs.makeDesktopItem ((removeAttrs args [ "profile" ])
// {