summaryrefslogtreecommitdiff
path: root/connectivity
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-01-06 10:24:30 +0000
committerCaolán McNamara <caolanm@redhat.com>2012-01-06 10:25:42 +0000
commit6be6357cce999e5a1a692da1f682847be3723587 (patch)
tree8ee9f9cb75aa51fff81e415afb0a92abdfcca04c /connectivity
parent0d7e2108425da1f81c20a605145679168486df59 (diff)
generic unix .mozilla dir is under home dir, not xdg-config-dir
Diffstat (limited to 'connectivity')
-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("/"));
}