Add another preferences directory for applications: preferences/syspref
authorMike Hommey <glandium@debian.org>
Sat, 21 Jun 2008 01:09:21 +0000 (03:09 +0200)
committerCarsten Schoenert <c.schoenert@t-online.de>
Sun, 21 Nov 2021 17:29:42 +0000 (17:29 +0000)
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

toolkit/xre/nsXREDirProvider.cpp

index d6def8aee83d6e5bdbcda917799aa82560bbef6f..3fd4cfe55269f77d1ca91f55d4ee057e6f616f34 100644 (file)
@@ -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