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/1%91.4.1-1+rpi1^2~28 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=d531fbc2ae1fa317861a7bd6c9a5a33f42a614dd;p=thunderbird.git Add another preferences directory for applications: preferences/syspref This can be used to symlink to /etc/thunderbird/pref. 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 d6def8aee8..3fd4cfe552 100644 --- a/toolkit/xre/nsXREDirProvider.cpp +++ b/toolkit/xre/nsXREDirProvider.cpp @@ -807,6 +807,8 @@ static nsresult DeleteDirIfExists(nsIFile* dir) { static const char* const kAppendPrefDir[] = {"defaults", "preferences", nullptr}; +static const char *const kAppendSysPrefDir[] = { "defaults", "syspref", nullptr }; + #ifdef MOZ_BACKGROUNDTASKS static const char* const kAppendBackgroundTasksPrefDir[] = { "defaults", "backgroundtasks", nullptr}; @@ -825,6 +827,7 @@ nsresult nsXREDirProvider::GetFilesInternal(const char* aProperty, if (mozilla::BackgroundTasks::IsBackgroundTaskMode()) { LoadDirIntoArray(mGREDir, kAppendBackgroundTasksPrefDir, directories); LoadDirIntoArray(mXULAppDir, kAppendBackgroundTasksPrefDir, directories); + LoadDirIntoArray(mXULAppDir, kAppendSysPrefDir, directories); } #endif