summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx b/connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx
index 3625e56f479f..4db639b2917c 100644
--- a/connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx
+++ b/connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx
@@ -56,7 +56,15 @@ namespace
::osl::Security aSecurity;
::rtl::OUString aConfigPath;
+ #if defined(XP_WIN) || defined(MACOSX)
aSecurity.getConfigDir( aConfigPath );
+ #else
+ //This is to find the dir under which .mozilla/.thunderbird is created.
+ //mozilla doesn't honour XDG_CONFIG_HOME, so raw home dir required here
+ //not xdg-config dir
+ aSecurity.getHomeDir( aConfigPath );
+ #endif
+
return aConfigPath + ::rtl::OUString(RTL_CONSTASCII_USTRINGPARAM("/"));
}