refactor(browsers): simplify profile code
This commit is contained in:
parent
fb396ce0d8
commit
e444b0818e
|
@ -100,12 +100,10 @@ in {
|
||||||
makeFirefoxProfileBin = args@{ profile, ... }:
|
makeFirefoxProfileBin = args@{ profile, ... }:
|
||||||
let
|
let
|
||||||
name = "firefox-${profile}";
|
name = "firefox-${profile}";
|
||||||
script = ''
|
scriptBin = pkgs.writeScriptBin name ''
|
||||||
firefox -p "${escapeDesktopArg profile}" --class="${
|
firefox -p "${escapeDesktopArg profile}" --class="${
|
||||||
escapeDesktopArg name
|
escapeDesktopArg name
|
||||||
}"'';
|
}" $@
|
||||||
scriptBin = pkgs.writeScriptBin name ''
|
|
||||||
${script} $@
|
|
||||||
'';
|
'';
|
||||||
desktopFile = pkgs.makeDesktopItem ((removeAttrs args [ "profile" ])
|
desktopFile = pkgs.makeDesktopItem ((removeAttrs args [ "profile" ])
|
||||||
// {
|
// {
|
||||||
|
|
Loading…
Reference in a new issue