File chromium-master-prefs-path.patch of Package chromium
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);
}