mirror of
https://github.com/redis/RedisDesktopManager.git
synced 2026-10-28 19:17:36 +08:00
Add experimental/optional crashpad integration
This commit is contained in:
@@ -2,6 +2,10 @@
|
||||
#include <QFileInfo>
|
||||
#include <QGuiApplication>
|
||||
|
||||
#ifdef CRASHPAD_INTEGRATION
|
||||
#include "crashpad/handler.h"
|
||||
#endif
|
||||
|
||||
#include "app/app.h"
|
||||
|
||||
#define RESTART_CODE 1000
|
||||
@@ -13,6 +17,12 @@ int main(int argc, char *argv[])
|
||||
#endif
|
||||
int returnCode = 0;
|
||||
|
||||
#ifdef CRASHPAD_INTEGRATION
|
||||
QFileInfo appPath(QString::fromLocal8Bit(argv[0]));
|
||||
QString appDir(appPath.absoluteDir().path());
|
||||
startCrashpad(appDir);
|
||||
#endif
|
||||
|
||||
do
|
||||
{
|
||||
Application a(argc, argv);
|
||||
|
||||
Reference in New Issue
Block a user