diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-02-27 18:26:34 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-02-27 18:26:34 +0100 |
commit | 58eea9b92491c8c69785ae2507dac0f6f9bb265e (patch) | |
tree | 6257686094d1bcf3cd1d6e75fac9bc1b8c5b9ec4 /desktop | |
parent | 133a5d87efe5a5088e92d285df26d5f59548d93b (diff) |
store the crash ini file inside of the user profile
Change-Id: I9d85d3daba288091f9aa406a24b24facf5d20b1e
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/app/crashreport.cxx | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/desktop/source/app/crashreport.cxx b/desktop/source/app/crashreport.cxx index 6d148c56157d..f15a36e8061a 100644 --- a/desktop/source/app/crashreport.cxx +++ b/desktop/source/app/crashreport.cxx @@ -8,8 +8,11 @@ */ #include <desktop/crashreport.hxx> +#include <rtl/bootstrap.hxx> +#include <osl/file.hxx> #include <config_version.h> +#include <config_folders.h> #include <string> #include <fstream> @@ -42,8 +45,13 @@ void CrashReporter::writeCommonInfo() std::string CrashReporter::getIniFileName() { - // TODO: we need a generic solution for the location - return "/tmp/dump.ini"; + OUString url("${$BRAND_BASE_DIR/" LIBO_ETC_FOLDER "/" SAL_CONFIGFILE("bootstrap") ":UserInstallation}/crash/"); + rtl::Bootstrap::expandMacros(url); + osl::Directory::create(url); + + OString aUrl = OUStringToOString(url, RTL_TEXTENCODING_UTF8); + std::string aRet(aUrl.getStr()); + return aRet; } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |