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