Merge pull request #208085 from anund/netflix_allow_override

netflix: allow passing flags to google-chrome
This commit is contained in:
Robert Hensing 2022-12-28 12:37:05 +01:00 committed by GitHub
commit 3f3eb370c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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