[Libreoffice-commits] .: Branch 'libreoffice-3-5' - connectivity/source

Michael Meeks michael at kemper.freedesktop.org
Fri Jan 6 08:32:33 PST 2012


 connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx |    8 ++++++++
 1 file changed, 8 insertions(+)

New commits:
commit 3b2e602e98d81bb061b879195dece49760420030
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Fri Jan 6 10:24:30 2012 +0000

    generic unix .mozilla dir is under home dir, not xdg-config-dir

diff --git a/connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx b/connectivity/source/drivers/mozab/bootstrap/MNSFolders.cxx
index d098e67..2921660 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("/"));
     }
 


More information about the Libreoffice-commits mailing list