fix(browsers): fix makeFirefoxProfileBin WM_CLASS handling
This commit is contained in:
parent
7ef5504afa
commit
a643269597
|
@ -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" ])
|
||||||
// {
|
// {
|
||||||
|
|
Loading…
Reference in a new issue