Initialize KCrash after setting KAboutData

So that KCrash can report the application version
This commit is contained in:
Nicolas Fella 2024-08-07 14:25:52 +02:00
parent 68a621f95a
commit 9d76423285

View file

@ -289,8 +289,6 @@ int main(int argc, char *argv[])
// reset QT_QPA_PLATFORM so we don't propagate it to our children (e.g. apps launched from the overview effect)
qunsetenv("QT_QPA_PLATFORM");
KCrash::initialize();
KSignalHandler::self()->watchSignal(SIGTERM);
KSignalHandler::self()->watchSignal(SIGINT);
KSignalHandler::self()->watchSignal(SIGHUP);
@ -299,6 +297,8 @@ int main(int argc, char *argv[])
KWin::Application::createAboutData();
KCrash::initialize();
#if KWIN_BUILD_X11
QCommandLineOption xwaylandOption(QStringLiteral("xwayland"),
i18n("Start a rootless Xwayland server."));