This forum has been archived. All content is frozen. Please use KDE Discuss instead.

System-wide screenlocker configuration/enforcement

Tags: None
(comma "," separated)
fabricemarie
Registered Member
Posts
1
Karma
0
Hi KDE Forum,

I'm trying to enforce a screenlocker policy (typical in enterprises) where the user has the central configuration by default, and cannot change it. So I'm trying to set it in global configuration files (file owned by root so user can't change them) as opposed to user's home directory configuration file, and using the immutable [$i] flag for the things I don't want the user to change.

I can't seem to find the right place / filename / section name for it to work globally.

I got the correct section names and key names from doing some tests on another user using the system settings gui, and it gives me this:

cat ~/.config/kscreenlockerrc:
Code: Select all
[Daemon]
LockGrace=5
Timeout=5

[Greeter]
WallpaperPlugin=org.kde.image

[Greeter][LnF][General]
alwaysShowClock=false
showMediaControls=false

[Greeter][Wallpaper][org.kde.image][General]
Image=/usr/share/wallpapers/F37/


Now I want to set some of these values as the mutable default and some as immutable defaults that the user cannot change.

I've tried setting this in /etc/xdg/kscreenlockerrc:

Code: Select all
[Daemon]
LockGrace[$i]=5
Timeout[$i]=5

[Greeter]
WallpaperPlugin[$i]=org.kde.image

[Greeter][LnF][General]
alwaysShowClock=false
showMediaControls=false

[Greeter][Wallpaper][org.kde.image][General]
Image[$i]=/usr/share/wallpapers/F37/


but it still allows the user to change the configuration.

I've tried setting this in /etc/kde5rc or /etc/xdg/kdeglobals in a slightly different format as:

Code: Select all
[kscreenlockerrc][Daemon]
LockGrace[$i]=5
Timeout[$i]=5

[kscreenlockerrc][Greeter]
WallpaperPlugin[$i]=org.kde.image

[kscreenlockerrc][Greeter][LnF][General]
alwaysShowClock=false
showMediaControls=false

[kscreenlockerrc][Greeter][Wallpaper][org.kde.image][General]
Image[$i]=/usr/share/wallpapers/F37/


But it didn't work either and it was completely ignored too.

I've read the old and new Kiosk KDE documentation, multiple KConfig developer documentations explaining the configuration cascading mechanism, but still I can't seem to understand this one.

Anyone has any idea what I am doing wrong?

Thank you in advance.


Bookmarks



Who is online

Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]