From: Mike Hommey Date: Sat, 21 Jun 2008 01:09:21 +0000 (+0200) Subject: Add another preferences directory for applications: preferences/syspref X-Git-Tag: archive/raspbian/78.15.0esr-1_deb11u1+rpi1^2~12 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=29e2a0713b34f9906eab473940735d30a93dd557;p=firefox-esr.git 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 --- diff --git a/toolkit/xre/nsXREDirProvider.cpp b/toolkit/xre/nsXREDirProvider.cpp index 7641ef683c3..114ac97ee00 100644 --- a/toolkit/xre/nsXREDirProvider.cpp +++ b/toolkit/xre/nsXREDirProvider.cpp @@ -839,6 +839,7 @@ static nsresult DeleteDirIfExists(nsIFile* dir) { static const char* const kAppendPrefDir[] = {"defaults", "preferences", nullptr}; +static const char *const kAppendSysPrefDir[] = { "defaults", "syspref", nullptr }; nsresult nsXREDirProvider::GetFilesInternal(const char* aProperty, nsISimpleEnumerator** aResult) { @@ -849,6 +850,7 @@ nsresult nsXREDirProvider::GetFilesInternal(const char* aProperty, nsCOMArray directories; LoadDirIntoArray(mXULAppDir, kAppendPrefDir, directories); + LoadDirIntoArray(mXULAppDir, kAppendSysPrefDir, directories); rv = NS_NewArrayEnumerator(aResult, directories, NS_GET_IID(nsIFile)); } else if (!strcmp(aProperty, NS_APP_CHROME_DIR_LIST)) {