Merge pull request #82339 from Ma27/captive-browser-xdg

nixos/captive-browser: set chromium's data-dir to a XDG-compliant location
This commit is contained in:
Maximilian Bosch 2020-04-16 00:06:12 +02:00 committed by GitHub
commit 70ecf83c33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -28,7 +28,7 @@ in
browser = mkOption {
type = types.str;
default = concatStringsSep " " [ ''${pkgs.chromium}/bin/chromium''
''--user-data-dir=$HOME/.chromium-captive''
''--user-data-dir=''${XDG_DATA_HOME:-$HOME/.local/share}/chromium-captive''
''--proxy-server="socks5://$PROXY"''
''--host-resolver-rules="MAP * ~NOTFOUND , EXCLUDE localhost"''
''--no-first-run''