Commit 30e61b4a authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Greeter] Ignore unwritable configuration files

When opening a non-writable config file, a kdialog process is spawned and the application waits for it to quit.
However, since in case of the lock screen, the input and everything is already blocked, the user cannot dismiss
the warning generated by the greeter, effectively locking the user out.

BUG: 403255

Differential Revision:
parent dfd02160
......@@ -80,6 +80,10 @@ int main(int argc, char* argv[])
if (!qEnvironmentVariableIsSet("QT_IM_MODULE") || (qEnvironmentVariableIsSet("QT_IM_MODULE") && qgetenv("QT_IM_MODULE") != QByteArrayLiteral("maliit"))) {
qputenv("QT_IM_MODULE", QByteArrayLiteral("qtvirtualkeyboard"));
// Suppresses modal warnings about unwritable configuration files which may render the system inaccessible
qputenv("KDE_HOME_READONLY", "1");
ScreenLocker::UnlockApp app(argc, argv);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment