diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-01-06 10:24:30 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-01-06 16:31:57 +0000 |
commit | 3b2e602e98d81bb061b879195dece49760420030 (patch) | |
tree | 6a43b4c1560d0657393aa44f3555f8fca314b268 /connectivity/source/drivers | |
parent | 81b5a2d152f1e19a5c4f0001e7314a67b531a164 (diff) |
generic unix .mozilla dir is under home dir, not xdg-config-dir
Diffstat (limited to 'connectivity/source/drivers')
-rw-r--r-- | connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx | 8 |
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 d098e67f1123..2921660ea0f7 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("/")); } |