Control: tags -1 + moreinfo

On Sat, 15 Jul 2023 14:35:37 -0700 Stepan Novotny <snovot...@gmail.com> wrote:
   * What led up to the situation?
I created /etc/polkit-1/rules.d/99-shutdown.rules and this worked fine:
polkit.addRule(function(action, subject) {
   if (action.id == 'org.freedesktop.login1.power-off-multiple-sessions' &&  
subject.isInGroup('Debian-gdm'))
   return polkit.Result.YES; else return polkit.Result.NOT_HANDLED;
});

Then I added a second file /etc/polkit-1/rules.d/99-power-off.rules and both 
failed to work:
polkit.addRule(function(action, subject) {
   if (action.id == 'org.freedesktop.login1.reboot-multiple-sessions' &&  
subject.isInGroup('Debian-gdm'))
   return polkit.Result.YES; else return polkit.Result.NOT_HANDLED;
});

I found that either one of the above files by itself works fine, but it fails 
if both files are present.

Can you post exact failure messages please?
What exactly did not work?
Maybe also provide a debug log of polkitd.

Michael

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature

Reply via email to