diff --git a/chromium-20.0.1132.47-master-prefs-path.patch b/chromium-20.0.1132.47-master-prefs-path.patch new file mode 100644 index 0000000..ac740b6 --- /dev/null +++ b/chromium-20.0.1132.47-master-prefs-path.patch @@ -0,0 +1,13 @@ +diff -urN chromium-20.0.1132.47.orig/chrome/browser/first_run/first_run_linux.cc chromium-20.0.1132.47/chrome/browser/first_run/first_run_linux.cc +--- chromium-20.0.1132.47.orig/chrome/browser/first_run/first_run_linux.cc 2012-07-09 18:31:56.482914645 +0400 ++++ chromium-20.0.1132.47/chrome/browser/first_run/first_run_linux.cc 2012-07-09 18:34:30.879943380 +0400 +@@ -101,8 +101,7 @@ + FilePath MasterPrefsPath() { + // The standard location of the master prefs is next to the chrome binary. + FilePath master_prefs; +- if (!PathService::Get(base::DIR_EXE, &master_prefs)) +- return FilePath(); ++ master_prefs = FilePath("/etc/chromium"); + return master_prefs.AppendASCII(installer::kDefaultMasterPrefs); + } + diff --git a/chromium-browser-stable.spec b/chromium-browser-stable.spec index b962805..5ffd9e5 100644 --- a/chromium-browser-stable.spec +++ b/chromium-browser-stable.spec @@ -18,6 +18,7 @@ Patch0: chromium-19.0.1077.3-remove-inline.patch Patch1: chromium-20.0.1132.43-svnversion.patch Patch2: chromium-20.0.1132.43-fix-includes.patch Patch3: sqlite-3.7.6.3-fix-out-of-scope-memory-reference.patch +Patch4: chromium-20.0.1132.47-master-prefs-path.patch Source1000: patch-20.0.1132.43-20.0.1132.47.diff.xz Source1001: patch-20.0.1132.47-20.0.1132.57.diff.xz #Source1001: binary-19.0.1077.3-19.0.1081.2.tar.xz @@ -74,6 +75,7 @@ chromium-browser-unstable package instead. %patch1 -p1 -b .svnversion %patch2 -p0 -b .includes %patch3 -p1 -b .fix-out-of-scope-memory-reference +%patch3 -p1 -b .prefs %patchver 20.0.1132.43 20.0.1132.47 %patchver 20.0.1132.47 20.0.1132.57