Enable drkonqi

Enable dr konqi for kwin so sentry crash reports are more useful.
This commit is contained in:
Vlad Zahorodnii 2024-04-19 15:21:23 +03:00
parent 6be238e622
commit f37c15b0a2
2 changed files with 5 additions and 8 deletions

View file

@ -94,14 +94,6 @@ static void restoreNofileLimit()
}
}
void disableDrKonqi()
{
KCrash::setDrKonqiEnabled(false);
}
// run immediately, before Q_CORE_STARTUP functions
// that would enable drkonqi
Q_CONSTRUCTOR_FUNCTION(disableDrKonqi)
//************************************
// ApplicationWayland
//************************************
@ -297,6 +289,8 @@ 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);

View file

@ -148,6 +148,9 @@ QStringList Integration::themeNames() const
QPlatformOpenGLContext *Integration::createPlatformOpenGLContext(QOpenGLContext *context) const
{
if (!kwinApp()->outputBackend()) {
return nullptr;
}
if (kwinApp()->outputBackend()->sceneEglGlobalShareContext() == EGL_NO_CONTEXT) {
qCWarning(KWIN_QPA) << "Attempting to create a QOpenGLContext before the scene is initialized";
return nullptr;