You are not logged in.
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
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
[ Generated in 0.009 seconds, 7 queries executed - Memory usage: 521.88 KiB (Peak: 529.66 KiB) ]