Xfce Forum

Sub domains
 

You are not logged in.

#1 2024-08-02 15:30:59

kladizkov
Member
Registered: 2024-08-02
Posts: 1

Disable the shutdown restart and suspend button in XFCE logout menu

How can I disable the shutdown, restart, suspend buttons in the XFCE logout menu in Ubuntu 24?

Earlier I used to do it with Polkit in Ubuntu 22. But after migrating to Ubuntu 24, that method is not working ( i.e. the Shutdown/Restart/Suspend button are enabled. )

In Ubuntu 22, creating a file say /etc/polkit-1/localauthority.conf.d/10-onlyrestart.pkla with the below content, it used to do the trick. But not anymore in Ubuntu 24.

[OnlyRestart]
Identity=unix-user:*
Action=org.freedesktop.consolekit.system.stop;org.freedesktop.login1.power-off;org.freedesktop.login1.power-off-multiple-sessions;org.xfce.session.xfsm-shutdown-helper;org.freedesktop.login1.suspend;org.freedesktop.login1.suspend-multiple-sessions;org.freedesktop.login1.hibernate;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.consolekit.system.stop-multiple-users
ResultInactive=no
ResultActive=no

Is there any way to do it in Ubuntu 24?

Please help!

Offline

#2 2024-08-02 21:36:03

Misko_2083
Member
Registered: 2015-10-13
Posts: 211
Website

Re: Disable the shutdown restart and suspend button in XFCE logout menu

Seems like pkla files are not used anymore, nos it's Javascript.
https://discourse.ubuntu.com/t/use-of-j … lkit/13892


Do you want to exit the Circus?
https://www.youtube.com/watch?v=ZJwQicZHp_c

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 521.88 KiB (Peak: 529.66 KiB) ]