From a21c17ab26ea114c365282592d14b5ffcee2b224 Mon Sep 17 00:00:00 2001 From: elsid Date: Mon, 20 Dec 2021 20:40:04 +0100 Subject: [PATCH] Use crash catcher in launcher --- apps/launcher/main.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/apps/launcher/main.cpp b/apps/launcher/main.cpp index 9c9acb4a17..4e054867f4 100644 --- a/apps/launcher/main.cpp +++ b/apps/launcher/main.cpp @@ -4,6 +4,8 @@ #include #include +#include + #ifdef MAC_OS_X_VERSION_MIN_REQUIRED #undef MAC_OS_X_VERSION_MIN_REQUIRED // We need to do this because of Qt: https://bugreports.qt-project.org/browse/QTBUG-22154 @@ -12,7 +14,7 @@ #include "maindialog.hpp" -int main(int argc, char *argv[]) +int runLauncher(int argc, char *argv[]) { try { @@ -49,3 +51,8 @@ int main(int argc, char *argv[]) return 0; } } + +int main(int argc, char *argv[]) +{ + return wrapApplication(runLauncher, argc, argv, "Launcher"); +}