From 9e49224406e9ffbea04a685f1f7370342cf0de5d Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Mon, 21 Sep 2020 00:51:31 +1000 Subject: [PATCH] crashpad: correct handler path on non-Windows systems --- app/common/crashpadinterface.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/common/crashpadinterface.cpp b/app/common/crashpadinterface.cpp index 6c55ab45e..770e8a84a 100644 --- a/app/common/crashpadinterface.cpp +++ b/app/common/crashpadinterface.cpp @@ -81,7 +81,11 @@ bool InitializeCrashpad() // FIXME: On Linux, probably should put this in a subdir so that it doesn't conflict with // anything else in /usr/bin +#ifdef Q_OS_WINDOWS base::FilePath handler(TO_BASE_STRING_TYPE(QDir(exe_dir).filePath(QStringLiteral("crashpad_handler.exe")))); +#else + base::FilePath handler(TO_BASE_STRING_TYPE(QDir(exe_dir).filePath(QStringLiteral("crashpad_handler")))); +#endif base::FilePath reports_dir(TO_BASE_STRING_TYPE(QDir(OLIVE_NAMESPACE::FileFunctions::GetTempFilePath()).filePath("reports")));