Summary: | using switch_user=false with kiosk has no effect when screen is locked | ||
---|---|---|---|
Product: | [Unmaintained] ksmserver | Reporter: | Francesco Florian <florian> |
Component: | lockscreen | Assignee: | David Edmundson <kde> |
Status: | RESOLVED NOT A BUG | ||
Severity: | minor | CC: | hertle, mgraesslin |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Debian stable | ||
OS: | Linux | ||
See Also: | https://bugs.kde.org/show_bug.cgi?id=335176 | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Francesco Florian
2014-10-18 15:56:41 UTC
I have the same problem using KDE platform version 4.14.2 on Debian testing. I just investigated and conclude that the code is correct. These are actions and thus the correct restriction must be: [KDE Action Restrictions][$i] action/start_new_session=false action/switch_user=false At least under Plasma 5 with this action restriction in a global kdeglobas the lock screen does not offer new session or session switching. I assume the same should be the case on Plasma 4. In addition I verified the usage with our code search: http://lxr.kde.org/search?_filestring=&_string=start_new_session In each case KAuthorized::authorizeKAction is used which according to the documentation is prepending an "action/". Also given the documentation under https://techbase.kde.org/KDE_System_Administration/Kiosk/Introduction#KDE_Action_Restrictions I conclude that it needs to be with "action/" prefix as the specific restrictions are called "actions". If you know of a case where it works without the "action/" prefix, please let me know. it works without 'action/' in plasma 4 menus (it hides all buttons), debian stable and ubuntu; however it doesn't hide or disable the 'new session' button in the screen locker. it does *not* work at all with 'action/' in plasma 4, ubuntu i didn't try in plasma 5 yet according to the documentation under https://techbase.kde.org/KDE_System_Administration/Kiosk/Keys#Session_Capability_Restrictions it seems that 'start_new_session' and 'switch_user' don't require 'action/', while 'new_session' (without start) does (https://techbase.kde.org/KDE_System_Administration/Kiosk/Keys). looking at the code these are definitely used as actions, but are not working with the prepended 'action/' (maybe this has something to do with http://lxr.kde.org/source/kde/kdelibs/kdecore/doc/README.kiosk ?) |