Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
A patch to make startplasma-x11 invoke ksmserver with --no-lockscreen for the benefit of xscreensaver. Relevant to versions 5.17 → 5.20
--- startplasma.cpp.orig 2021-04-11 21:16:44.570404892 +1200
+++ startplasma.cpp 2021-04-11 21:17:22.973819429 +1200
@@ -365,9 +365,7 @@
if (qEnvironmentVariableIsSet("KDEWM")) {
ksmserverOptions << QStringLiteral("--windowmanager") << qEnvironmentVariable("KDEWM");
}
- if (desktopLockedAtStart) {
- ksmserverOptions << QStringLiteral("--lockscreen");
- }
+ ksmserverOptions << QStringLiteral("--no-lockscreen");
}
const auto exitCode = runSync(QStringLiteral(CMAKE_INSTALL_FULL_BINDIR "/plasma_session"), ksmserverOptions);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment