Commit 3800aa25 authored by David Edmundson's avatar David Edmundson
Browse files

Make ksmserver's lock screen detection automatic

Use of a flag doesn't make it easy to share code, especially with the
systemd units.

(cherry picked from commit d3adf06c)
parent 75bdbc4a
......@@ -286,6 +286,12 @@ int main(int argc, char *argv[])
flags |= KSMServer::InitFlag::NoLockScreen;
// we use the session_type here as ksmserver is already forced as X above
// in wayland, kwin manages the lock screen
if (qgetenv("XDG_SESSION_TYPE") == QByteArrayLiteral("wayland")) {
flags |= KSMServer::InitFlag::NoLockScreen;
KSMServer *server = new KSMServer(flags);
// for the KDE-already-running check in startkde
Supports Markdown
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