Merge pull request #1407 from JulianGro/macOS_fix_crashpad

Fix crashpad on macOS.
This commit is contained in:
Dale Glass 2021-10-28 23:45:09 +02:00 committed by GitHub
commit 4d190df3cd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -386,6 +386,8 @@ bool startCrashHandler(std::string appPath) {
} else {
qCDebug(crash_handler) << "Locating own directory by argv[0]";
interfaceDir.setPath(QString::fromStdString(appPath));
// argv[0] gets us the path including the binary file
interfaceDir.cdUp();
}
if (!interfaceDir.exists(CRASHPAD_HANDLER_NAME)) {