diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-05-30 05:51:36 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-02 15:02:10 +0000 |
commit | 70500b1bd76200b5339686bbc28f12fdbe898e98 (patch) | |
tree | 034a35318c8b24b7c4af4fc57567b7cc7b1be9a9 /desktop | |
parent | Resolves: tdf#100191 crash: switch to Display Mode: Notes via toolbar (diff) | |
download | core-70500b1bd76200b5339686bbc28f12fdbe898e98.tar.gz core-70500b1bd76200b5339686bbc28f12fdbe898e98.zip |
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>
(cherry picked from commit 4405180546bce4b4237f1a23c0bc5bcc5d7bb3a7)
Reviewed-on: https://gerrit.libreoffice.org/25819
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; } } |