graesslin added a comment.
> KSldApp::self()->lock(DefaultToSwitchUser) That won't work on Wayland. There ksmserver is not responsible for the lock screen and doesn't interact with KSldApp. Thus I would rather go for adding a dedicated call to the org.kde.screensaver DBus interface. In general: I'm all for it! REPOSITORY rKSCREENLOCKER KScreenLocker REVISION DETAIL https://phabricator.kde.org/D2525 EMAIL PREFERENCES https://phabricator.kde.org/settings/panel/emailpreferences/ To: davidedmundson, #plasma Cc: graesslin, plasma-devel, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas