diff options
author | CoprDistGit <infra@openeuler.org> | 2024-09-25 09:55:25 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-09-25 09:55:25 +0000 |
commit | 8fe37c454512853c40108c2c0d19c2d39d15af19 (patch) | |
tree | aefee73b38da5be91c6d7b3a2e1ba13848f41938 /chromium-master-prefs-path.patch | |
parent | 0dc651d979e28d3c6b3e380b056741946893de1d (diff) |
automatic import of chromiumopeneuler20.03
Diffstat (limited to 'chromium-master-prefs-path.patch')
-rw-r--r-- | chromium-master-prefs-path.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/chromium-master-prefs-path.patch b/chromium-master-prefs-path.patch new file mode 100644 index 0000000..f9e6b07 --- /dev/null +++ b/chromium-master-prefs-path.patch @@ -0,0 +1,16 @@ +Index: chromium-115.0.5790.32/chrome/browser/first_run/first_run_internal_linux.cc +=================================================================== +--- chromium-115.0.5790.32.orig/chrome/browser/first_run/first_run_internal_linux.cc ++++ chromium-115.0.5790.32/chrome/browser/first_run/first_run_internal_linux.cc +@@ -21,10 +21,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(); +- } +- ++ dir_exe = base::FilePath("/etc/chromium"); + return installer::InitialPreferences::Path(dir_exe); + } + |