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

Hide New Session button

Tags: None
(comma "," separated)
ladeir
Registered Member
Posts
2
Karma
0

Hide New Session button

Tue Nov 08, 2016 9:07 pm
Hi,

When Ctrl+Alt+L for session lockdown, there is a mouse clickable option to start a new session. What can I do to hide this option? I only want my user to show, with the input field for password entry. This is just a personalization issue, not a real problem.

Thanks!
molecule-eye
Registered Member
Posts
402
Karma
0
OS

Re: Hide New Session button

Fri Dec 02, 2016 10:14 am
I wish I knew too! I came here to ask the same question.
User avatar
Rog131
Registered Member
Posts
828
Karma
10

Re: Hide New Session button

Fri Dec 02, 2016 1:39 pm
Hide New Session button

Plasma 4

How to Customize the Lock Screen on KDE: https://www.maketecheasier.com/customiz ... ck-screen/

Changing: /usr/share/kde4/apps/ksmserver/screenlocker/org.kde.passworddialog/contents/ui/Greeter.qml

From
Code: Select all
visible: switchUserEnabled

to
Code: Select all
visible: false


Result:
Image


Plasma 5

With the plasma 5 the screen locking qml code is part of the Look and Feel theme.

Paths
System: /usr/share/plasma/look-and-feel/<THEME_NAME>
User: ~/.local/share/plasma/look-and-feel/<THEME_NAME>

Image


With the Plasma 5.8.4 based theme. Changing .../contents/lockscreen/LockScreenUi.qml:

From:
Code: Select all
if (sessionsModel.canStartNewSession) {

to
Code: Select all
if (false) {


Result:
Image


Earlier

Wrong time format in plasma5 lock screen: viewtopic.php?f=289&t=130484
molecule-eye
Registered Member
Posts
402
Karma
0
OS

Re: Hide New Session button

Wed Dec 07, 2016 9:02 am
Brilliant--thanks Rog!
kbroulik
KDE Developer
Posts
131
Karma
0
OS

Re: Hide New Session button

Wed Dec 07, 2016 9:16 am
To do it properly™ use KDE's Kiosk Framework:

Add the following to ~/.config/kdeglobals (or /etc/xdg/kdeglobals if it should be for all users, in Plasma 4 should be ~/.kde/kdeglobals or ~/.kde4/kdeglobals iirc)
Code: Select all
[KDE Action Restrictions][$i]
action/start_new_session=false
The [$i] is so that the user cannot change or override it (normally stuff in ~/.config takes precendence over /etc/xdg)

There's also a action/switch_user
User avatar
Rog131
Registered Member
Posts
828
Karma
10
molecule-eye
Registered Member
Posts
402
Karma
0
OS

Re: Hide New Session button

Thu Dec 08, 2016 8:28 am
Thanks, kbroulik. It would be nice to expose that setting in the GUI.


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]