diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2015-11-25 17:00:21 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-02-25 06:40:21 +0000 |
commit | 4943ee042ac487bc9be4477fed7effa8ea9f74d4 (patch) | |
tree | 412908804c546015e812cba0950e0ff87d034ac0 /desktop/source/app/sofficemain.cxx | |
parent | 98a8eafa915b8d57b8bdccab9981e537d77f6f4a (diff) |
don't hardcode the version string in crash report url
Change-Id: I9814e5975d69d4b93dd2a2b142e9368dc665c225
Reviewed-on: https://gerrit.libreoffice.org/22554
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'desktop/source/app/sofficemain.cxx')
-rw-r--r-- | desktop/source/app/sofficemain.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/desktop/source/app/sofficemain.cxx b/desktop/source/app/sofficemain.cxx index 7acd97c1af01..d32f7b15fb86 100644 --- a/desktop/source/app/sofficemain.cxx +++ b/desktop/source/app/sofficemain.cxx @@ -19,6 +19,7 @@ #include <sal/config.h> #include <config_features.h> +#include <config_version.h> #include <config_folders.h> #include <desktop/dllapi.h> @@ -75,7 +76,7 @@ static bool dumpCallback(const google_breakpad::MinidumpDescriptor& descriptor, { // send the minidump to the server (not yet implemented) SAL_WARN("destkop.crashreport", "minidump generated: " << descriptor.path()); - OString aCommand = getLibDir().copy(7) + "/minidump_upload -p LibreOffice -v \"5.1.0.0\" "; + OString aCommand = getLibDir().copy(7) + "/minidump_upload -p LibreOffice -v \"" + LIBO_VERSION_DOTTED + "\" "; aCommand = aCommand + descriptor.path() + " http://libreofficecrash.org/submit"; int retVal = std::system(aCommand.getStr()); SAL_WARN_IF(retVal != 0, "destkop.crashreport", "Failed to upload minidump. Error Code: " << retVal); |