Unverified Commit 3f3eb370 authored by Robert Hensing's avatar Robert Hensing Committed by GitHub
Browse files

Merge pull request #208085 from anund/netflix_allow_override

netflix: allow passing flags to google-chrome
parents 38af5768 816f545d
Loading
Loading
Loading
Loading
+8 −2
Original line number Diff line number Diff line
@@ -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