You are not logged in.
I'm using the MATE Desktop.
I am trying to remove the Suspend and Hibernate buttons from my shutdown menu.
I have tried something that always worked in Linux Mint, but unfortunately does not work in Arch:
sudo mkdir -p /etc/polkit-1/localauthority/90-mandatory.d
sudo touch /etc/polkit-1/localauthority/90-mandatory.d/disable-suspend-hibernate.pkla
sudo pluma /etc/polkit-1/localauthority/90-mandatory.d/disable-suspend-hibernate.pkla.I added the following content to the /etc/polkit-1/localauthority/90-mandatory.d/disable-suspend.pkla file:
[Disable suspend (upower)]
Identity=unix-user:*
Action=org.freedesktop.upower.suspend
ResultActive=no
ResultInactive=no
ResultAny=no
[Disable suspend (logind)]
Identity=unix-user:*
Action=org.freedesktop.login1.suspend
ResultActive=no
[Disable suspend for all sessions (logind)]
Identity=unix-user:*
Action=org.freedesktop.login1.suspend-multiple-sessions
ResultActive=no.Like I said, I tried doing the same thing in arch, but it does not work...
If anybody knows how to remove those pesky Suspend and Hibernate buttons from the shutdown menu, please help me.
P.S. - If you are indeed willing to help me, and have a simple and easy to follow answer to my problem I would much appreciate it, otherwise please abstain from the usual read the wiki and other mean stuff like that.
Thank you.
Last edited by ArchDoru (2021-04-23 16:14:55)
Offline
I know you said you don't want wiki answers for some reason, but... https://wiki.archlinux.org/index.php/Po … _hibernate ?
The problem with trying to apply solutions in the exact way you have done them on other distributions is that there's no way to tell what version differences or custom patches might alter behaviour on an Arch system in comparison to whatever you are used to.
Case in point I can't find any references in our polkit docs that would suggest that the folder you created would be considered in any way.
Last edited by V1del (2021-04-23 15:51:14)
Offline
What shutdown menu?
You haven't told us which DE/WM you're using.....
Offline
What shutdown menu?
You haven't told us which DE/WM you're using.....
Sorry, I simply forgot...
I'm using MATE. I will edit the post to reflect that as well.
Thanks for bringing this to my attention.
Offline
I know you said you don't want wiki answers for some reason, but... https://wiki.archlinux.org/index.php/Po … _hibernate ?
The problem with trying to apply solutions in the exact way you have done them on other distributions is that there's no way to tell what version differences or custom patches might alter behaviour on an Arch system in comparison to whatever you are used to.
Case in point I can't find any references in our polkit docs that would suggest that the folder you created would be considered in any way.
Thanks, it worked. Problem solved.
I will mark the post as [SOLVED]
Have a great day, buddy
Last edited by ArchDoru (2021-04-23 16:16:48)
Offline