Polkit: Difference between revisions

imported>Skallito
m Fix syntax for the service.
imported>Tkuwill
m I wrote the code by myself.
Line 32: Line 32:
};
};
</syntaxhighlight>
</syntaxhighlight>
== Start the authentication agent in dwm ==
If you use dwm patched with [https://dwm.suckless.org/patches/autostart/dwm-autostart-20210120-cb3f58a.diff dwm-autostart-20210120-cb3f58a.diff], you can add a command into <code>~/.dwm/autostart.sh</code> to start a polkit agent. Here take <code>mate.mate-polkit</code> for example:
<syntaxhighlight>
#!/bin/sh
# General stuff
...
/nix/store/$(ls -la /nix/store | grep 'mate-polkit-1.26.0' | grep '4096' | awk '{print $9}')/libexec/polkit-mate-authentication-agent-1 &
...
</syntaxhighlight>
Remember to change <code>grep 'mate-polkit-1.26.0'</code> to a newer version when <code>mate.mate-polkit</code> gets an update.