summaryrefslogtreecommitdiff
path: root/chromium-master-prefs-path.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-01-11 08:08:40 +0000
committerCoprDistGit <infra@openeuler.org>2025-01-11 08:08:40 +0000
commit9ea6565d3362efbb0d9f050ba390e90bd81db457 (patch)
treee7b25e873b1a369acbf2323bd755a496a9c8a114 /chromium-master-prefs-path.patch
parente9abc6c72d6b470c59f4c9e9b5af6dfe5d1a75b2 (diff)
automatic import of chromiumopeneuler22.03_LTS_SP4
Diffstat (limited to 'chromium-master-prefs-path.patch')
-rw-r--r--chromium-master-prefs-path.patch16
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);
+ }
+