OK, I have a very specific and non-standard use case…
I have configured a touchscreen PC to function as a multimedia player that is operated solely by pressing on Plasmoids. Those Plasmoids each perform a very simple function: kill whatever mediaplayer is active (for instance, VLC or Spotify) and then start it with a predetermined config file. These things happen on the CLI, off-screen.
In order for the end users not to be able to modify any of the settings, I have the whole setup locked down with:
qdbus org.kde.plasmashell /PlasmashellevaluateScript ‘lockCorona(!locked)’ passed through an SSH login. Unlocking happens by changing the part between the brackets with (false).
Now, I am looking to keep this system up-to date so I want to migrate it to Plasma 6 in the near future, but this command no longer works (the evaluateScript isnot a part of Plasma 6).
Is there another way I can achieve the same effect (I looked into Kiosk mode but can’t see how that would fit my goal), or is it possible to migrate this evaluateScript to Plasma 6?
Thanks in advance for your help!
Is there a way to lock down ALL Plasma settings, panels, widgets, etc… within a normal user session?
EDIT:
I just notice the post above this one does that last through logoff and reboot, or does it have to be done each time? If it last through logoff and rebook what’s the command to disable it if I need to? Thanks
if you change the (!locked) with (false) it will unlock.
I just have the two commands in very simple scripts I have stored in /home, and run them from a different TTY (i.e. I switch to TTY5 with , log in, run whichever of the two scripts I want, exit the TTY, switch back to TT7 where the GUI lives
What you could do is use a launcher plasmoid (like “Run”) and make it execute the lock script.
Put it on the panel with a little lock as an icon and you’re set.
You could even use the “scriptinator” plasmoid, and have it change its icon from an unlocked state to a locked state when you run the lock script.
save the file somewhere convenient, right-click it and in the “properties” menu look for “permissions” and move the slider that says “allow executing file as a program”.
Right- click on your desktop, “enter edit mode”, add widget. Look for a widget called “Run”, if you don’t have it installed download it from the store (top right hand corner of that window).
Add the “Run” widget to your desktop, place it somewhere convenient. Exit edit mode. Right click the Run widget, pick an icon you like and in the field where it says" Command" enter the full path to the .sh file you created above.
Now, if you click that button you just made it will lock all settings on your desktop. Including the widget you just made.
The only way to remove the lock is to hit , log in and enter this:
qdbus6 org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript ‘lockCorona(false)’
If you have no idea what this all means you might want to stay away from this method until you do, because it can become confusing how to unlock the system