diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-05-30 05:51:36 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-05-30 08:17:28 +0000 |
commit | 4405180546bce4b4237f1a23c0bc5bcc5d7bb3a7 (patch) | |
tree | c70d2bb37a505aea80f1ee78f8daefdc079a4fb7 /desktop | |
parent | 7259f07deaa9f9d5ce5c5b0f8f0847c673449135 (diff) |
use the existing url to path function also in the ini file part
Change-Id: Ia92261a63cfe1d51f68f312a27d5ba4b42719c47
Reviewed-on: https://gerrit.libreoffice.org/25647
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/crashreport.cxx | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/desktop/source/app/crashreport.cxx b/desktop/source/app/crashreport.cxx index b1866f5e63ea..c50c2e98eba2 100644 --- a/desktop/source/app/crashreport.cxx +++ b/desktop/source/app/crashreport.cxx @@ -68,11 +68,9 @@ OUString getCrashUserProfileDirectory() rtl::Bootstrap::expandMacros(url); osl::Directory::create(url); -#if defined( UNX ) && !defined MACOSX && !defined IOS && !defined ANDROID - return url.copy(7); -#elif defined WNT - return url.copy(8); -#endif + OUString aProfilePath; + osl::FileBase::getSystemPathFromFileURL(url, aProfilePath); + return aProfilePath; } } |