diff --git a/kaccess/main.cpp b/kaccess/main.cpp --- a/kaccess/main.cpp +++ b/kaccess/main.cpp @@ -22,7 +22,6 @@ #include "kaccess.h" #include #include -#include #include #include #include @@ -34,7 +33,7 @@ migrate.setConfigFiles(QStringList() << QStringLiteral("kaccessrc")); migrate.migrate(); - QGuiApplication::setFallbackSessionManagementEnabled(false); + qunsetenv("SESSION_MANAGER"); //this application is currently only relevant on X, force to run under X //note if someone does port this we still need to run kaccess under X for xwayland apps @@ -65,13 +64,6 @@ return 1; } - auto disableSessionManagement = [](QSessionManager &sm) { - sm.setRestartHint(QSessionManager::RestartNever); - }; - - QObject::connect(&app, &QGuiApplication::commitDataRequest, disableSessionManagement); - QObject::connect(&app, &QGuiApplication::saveStateRequest, disableSessionManagement); - // verify the X server has matching XKB extension // if yes, the XKB extension is initialized int opcode_rtrn;