Commit 2bd5eb44 authored by David Edmundson's avatar David Edmundson

Disable session restoration in kaccess

It is loaded by kcminit in kcmaccess we don't need to try and load it

Test Plan: Rebooted, still had a kaccess

Reviewers: #plasma, mart

Reviewed By: #plasma, mart

Subscribers: plasma-devel

Tags: #plasma

Differential Revision:
parent c75338d4
......@@ -26,6 +26,7 @@
#include <KLocalizedString>
#include <QX11Info>
#include <Kdelibs4ConfigMigrator>
#include <QSessionManager>
extern "C" Q_DECL_EXPORT int kdemain(int argc, char * argv[])
......@@ -33,6 +34,8 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char * argv[])
migrate.setConfigFiles(QStringList() << QStringLiteral("kaccessrc"));
K4AboutData about(I18N_NOOP("kaccess"), 0, ki18n("KDE Accessibility Tool"),
0, KLocalizedString(), K4AboutData::License_GPL,
ki18n("(c) 2000, Matthias Hoelzer-Kluepfel"));
......@@ -63,6 +66,14 @@ extern "C" Q_DECL_EXPORT int kdemain(int argc, char * argv[])
return 1;
auto disableSessionManagement = [](QSessionManager &sm) {
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;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment