From 722f7eee56777533954070937fc77d528927a8bd Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Sat, 21 Jun 2008 03:09:21 +0200 Subject: [PATCH] Add another preferences directory for applications: preferences/syspref It was existing in previous versions of iceweasel as a symlink to /etc/iceweasel/pref. This has the side effect to make these preferences there work again, and to disable the "set as default browser" dialog. Gbp-Pq: Topic debian-hacks Gbp-Pq: Name Add-another-preferences-directory-for-applications-p.patch --- toolkit/xre/nsXREDirProvider.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/toolkit/xre/nsXREDirProvider.cpp b/toolkit/xre/nsXREDirProvider.cpp index 54e3410b63d..aa05914b5be 100644 --- a/toolkit/xre/nsXREDirProvider.cpp +++ b/toolkit/xre/nsXREDirProvider.cpp @@ -837,6 +837,7 @@ DeleteDirIfExists(nsIFile* dir) #endif // defined(MOZ_CONTENT_SANDBOX) static const char *const kAppendPrefDir[] = { "defaults", "preferences", nullptr }; +static const char *const kAppendSysPrefDir[] = { "defaults", "syspref", nullptr }; #ifdef DEBUG_bsmedberg static void @@ -878,6 +879,7 @@ nsXREDirProvider::GetFilesInternal(const char* aProperty, LoadDirIntoArray(mXULAppDir, kAppendPrefDir, directories); LoadDirsIntoArray(mAppBundleDirectories, kAppendPrefDir, directories); + LoadDirIntoArray(mXULAppDir, kAppendSysPrefDir, directories); rv = NS_NewArrayEnumerator(aResult, directories); } -- 2.30.2