Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-01-26 09:41:37

tuxolero
Member
Registered: 2013-02-10
Posts: 60

[SOLVED] remove "switch user" buttons from logout dialog & lockscreen

Hi,

I'm running XFCE on ArchLinux. Because I had trouble getting lxdm to work with plymouth, I recently switched to lightdm. I also switched from xscreensaver to xfce4-screensaver. I uninstalled both lxdm and xscreensaver.

Normal operation works fine, ther is just one thing I'd like to change:
Although I only have one user at userid 1000 or above, and additionally configured allow-user-switching=false in /etc/lightdm/lightdm.conf, I have a "switch user" button in the logout dialog and on the lockscreen.

Just out of curiosity, I tried what happens if I click them. It failed in both cases, which is kind of expected.

Is there a way to remove these buttons ?

Thanks

Last edited by tuxolero (2020-01-26 19:55:33)

Offline

#2 2020-01-26 10:02:47

alcornoqui
Member
Registered: 2014-07-28
Posts: 832

Re: [SOLVED] remove "switch user" buttons from logout dialog & lockscreen

Uncheck the corresponding option in the plugin settings.

Offline

#3 2020-01-26 11:57:59

tuxolero
Member
Registered: 2013-02-10
Posts: 60

Re: [SOLVED] remove "switch user" buttons from logout dialog & lockscreen

I can't find the settings dialog you mentioned. Maybe it's because I'm using whisker menu. I did not expect it to matter, that's why I forgot to mention it in my original post.

However, I've found the whisker menu settings. There is a "Commands" tab where, I have found "switch user" being unchecked, but it's still there in the logout dialog. The command behind "Logout" is xfce4-session-logout.

Offline

#4 2020-01-26 12:18:46

Aravisian
Member
Registered: 2019-08-17
Posts: 410

Re: [SOLVED] remove "switch user" buttons from logout dialog & lockscreen

tuxolero wrote:

I can't find the settings dialog you mentioned. Maybe it's because I'm using whisker menu. I did not expect it to matter, that's why I forgot to mention it in my original post.

However, I've found the whisker menu settings. There is a "Commands" tab where, I have found "switch user" being unchecked, but it's still there in the logout dialog. The command behind "Logout" is xfce4-session-logout.

Can you open your menu and go to Settings, then Session and Startup.
On the first tab, "General," is "Display chooser on login" selected?
If so, unselect it and see if that removes the option on login screen.

Offline

#5 2020-01-26 13:09:05

tuxolero
Member
Registered: 2013-02-10
Posts: 60

Re: [SOLVED] remove "switch user" buttons from logout dialog & lockscreen

It is already unchaecked.

Offline

#6 2020-01-26 15:02:47

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,237

Re: [SOLVED] remove "switch user" buttons from logout dialog & lockscreen

For the Xfce logout dialog, the following should disable the associated buttons:

xfconf-query -c xfce4-session -np '/shutdown/ShowHibernate' -t 'bool' -s 'false'
xfconf-query -c xfce4-session -np '/shutdown/ShowSuspend' -t 'bool' -s 'false'
xfconf-query -c xfce4-session -np '/shutdown/ShowHybridSleep' -t 'bool' -s 'false'
xfconf-query -c xfce4-session -np '/shutdown/ShowSwitchUser' -t 'bool' -s 'false'

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#7 2020-01-26 17:24:11

tuxolero
Member
Registered: 2013-02-10
Posts: 60

Re: [SOLVED] remove "switch user" buttons from logout dialog & lockscreen

OK, that worked for the logout dialog.

I think for the lockscreen, I'll have to ask the light-locker folks.

Thanks a lot.

Offline

#8 2021-04-22 19:29:19

jarnos
Member
From: Finland
Registered: 2009-03-22
Posts: 50
Website

Re: [SOLVED] remove "switch user" buttons from logout dialog & lockscreen

ToZ wrote:

For the Xfce logout dialog, the following should disable the associated buttons:

xfconf-query -c xfce4-session -np '/shutdown/ShowHibernate' -t 'bool' -s 'false'
xfconf-query -c xfce4-session -np '/shutdown/ShowSuspend' -t 'bool' -s 'false'
xfconf-query -c xfce4-session -np '/shutdown/ShowHybridSleep' -t 'bool' -s 'false'
xfconf-query -c xfce4-session -np '/shutdown/ShowSwitchUser' -t 'bool' -s 'false'

Seems to work, except ShowHibernate and ShowHybridSleep does not have and effect in my Xubuntu 20.04 for some reason. I wonder, if these settings are documented somewhere?

Offline

#9 2021-04-22 21:34:51

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,237

Re: [SOLVED] remove "switch user" buttons from logout dialog & lockscreen

Looks like still a work in progress.
There is the code. See: https://gitlab.xfce.org/xfce/xfce4-sess … log.c#L291.

What does the following return:

xfce4-power-manager --dump

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#10 2021-04-22 22:52:50

jarnos
Member
From: Finland
Registered: 2009-03-22
Posts: 50
Website

Re: [SOLVED] remove "switch user" buttons from logout dialog & lockscreen

It tells "Can hibernate: False" It tells nothing about HybridSleep the meaning of which is unknown to me. I wish the properties were at least created with their default values in Xfconf automatically. (That is not the case with Xubuntu 20.04.)

Offline

#11 2021-04-22 23:13:44

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,237

Re: [SOLVED] remove "switch user" buttons from logout dialog & lockscreen

Hybrid sleep is basically suspend first then hibernate when power levels are lost (it basically keeps state in memory and on disk, so if you run out power, you don't lose anything). If your system doesn't support hibernate, it won't be able to support hybrid sleep either.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Board footer

Powered by FluxBB