diff --git a/src/app/main.cpp b/src/app/main.cpp index 9da6030f5e5..755169fc8db 100644 --- a/src/app/main.cpp +++ b/src/app/main.cpp @@ -418,12 +418,11 @@ bool startCrashpad(const AppInfo &appInfo, bool crashReportingEnabled) const QString databasePath = appInfo.crashReports.path(); const QString handlerPath = (appInfo.libexec / "crashpad_handler").path(); #ifdef Q_OS_WIN - handlerPath += ".exe"; base::FilePath database(databasePath.toStdWString()); - base::FilePath handler(handlerPath.toStdWString()); + base::FilePath handler(HostOsInfo::withExecutableSuffix(handlerPath).toStdWString()); #elif defined(Q_OS_MACOS) || defined(Q_OS_LINUX) base::FilePath database(databasePath.toStdString()); - base::FilePath handler(handlerPath.toStdString()); + base::FilePath handler(HostOsInfo::withExecutableSuffix(handlerPath).toStdString()); #endif std::unique_ptr db = CrashReportDatabase::Initialize(database);