diff options
Diffstat (limited to 'nixpkgs/pkgs/applications/networking/browsers/chromium/patches/chromium-initial-prefs.patch')
-rw-r--r-- | nixpkgs/pkgs/applications/networking/browsers/chromium/patches/chromium-initial-prefs.patch | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/applications/networking/browsers/chromium/patches/chromium-initial-prefs.patch b/nixpkgs/pkgs/applications/networking/browsers/chromium/patches/chromium-initial-prefs.patch new file mode 100644 index 000000000000..cf359431b43c --- /dev/null +++ b/nixpkgs/pkgs/applications/networking/browsers/chromium/patches/chromium-initial-prefs.patch @@ -0,0 +1,19 @@ +diff --git a/chrome/browser/first_run/first_run_internal_linux.cc b/chrome/browser/first_run/first_run_internal_linux.cc +index 33fd579012..9a17b54b37 100644 +--- a/chrome/browser/first_run/first_run_internal_linux.cc ++++ b/chrome/browser/first_run/first_run_internal_linux.cc +@@ -19,13 +19,7 @@ bool IsOrganicFirstRun() { + } + + base::FilePath InitialPrefsPath() { +- // The standard location of the initial prefs is next to the chrome binary. +- base::FilePath dir_exe; +- if (!base::PathService::Get(base::DIR_EXE, &dir_exe)) { +- return base::FilePath(); +- } +- +- return installer::InitialPreferences::Path(dir_exe); ++ return base::FilePath("/etc/chromium/initial_preferences"); + } + + } // namespace internal |