From: Hannah von Reth Date: Wed, 21 Oct 2020 14:48:22 +0000 (+0200) Subject: Append .exe to crashreporter path so it is better located X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~12^2~21^2~468^2~20 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e4a022295403ebee1276d5d135263e0a6853a146;p=nextcloud-desktop.git Append .exe to crashreporter path so it is better located --- diff --git a/src/gui/application.cpp b/src/gui/application.cpp index d9272a69d..022ae9a1d 100644 --- a/src/gui/application.cpp +++ b/src/gui/application.cpp @@ -263,8 +263,15 @@ Application::Application(int &argc, char **argv) return; #if defined(WITH_CRASHREPORTER) - if (ConfigFile().crashReporter()) - _crashHandler.reset(new CrashReporter::Handler(QDir::tempPath(), true, CRASHREPORTER_EXECUTABLE)); + if (ConfigFile().crashReporter()) { + auto reporter = QStringLiteral(CRASHREPORTER_EXECUTABLE); +#ifdef Q_OS_WIN + if (reporter.endsWith(QLatin1String(".exe"))) { + reporter.append(QLatin1String(".exe")); + } +#endif + _crashHandler.reset(new CrashReporter::Handler(QDir::tempPath(), true, reporter)); + } #endif setupLogging();