Merge pull request #208085 from anund/netflix_allow_override
netflix: allow passing flags to google-chrome
This commit is contained in:
commit
3f3eb370c1
|
@ -5,6 +5,9 @@
|
|||
, runtimeShell
|
||||
, symlinkJoin
|
||||
, writeScriptBin
|
||||
|
||||
# command line arguments which are always set e.g "--disable-gpu"
|
||||
, commandLineArgs ? [ ]
|
||||
}:
|
||||
|
||||
let
|
||||
|
@ -43,9 +46,12 @@ let
|
|||
|
||||
script = writeScriptBin name ''
|
||||
#!${runtimeShell}
|
||||
exec ${google-chrome}/bin/${google-chrome.meta.mainProgram} \
|
||||
exec ${google-chrome}/bin/${google-chrome.meta.mainProgram} ${lib.escapeShellArgs commandLineArgs} \
|
||||
--app=https://netflix.com \
|
||||
--no-first-run --no-default-browser-check --no-crash-upload
|
||||
--no-first-run \
|
||||
--no-default-browser-check \
|
||||
--no-crash-upload \
|
||||
"$@"
|
||||
'';
|
||||
|
||||
in
|
||||
|
|
Loading…
Reference in a new issue