Polkit: Difference between revisions

imported>Kavika13
mNo edit summary
imported>Lumarius
Added a note about lxqt-policykit
(2 intermediate revisions by 2 users not shown)
Line 12: Line 12:
users</code> group.
users</code> group.


This is useful on a multi-user machine. It may also be of particular importance when using XRDP or other similar remote desktop solutions.
This is useful on a multi-user machine. It may also be of particular importance when using XRDP or other similar [[Remote Desktop]] solutions.


{{file|/etc/nixos/configuration.nix|nix|<nowiki>
{{file|/etc/nixos/configuration.nix|nix|<nowiki>
Line 58: Line 58:
};
};
</syntaxhighlight>
</syntaxhighlight>
Another option is <code>lxqt.lxqt-policykit</code>, which can be launched on login through the command <code>lxqt-policykit-agent</code> on e.g. Hyprland.


== Start the authentication agent in dwm ==
== Start the authentication agent in dwm ==
Line 63: Line 65:
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:
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>
<syntaxhighlight lang=bash>
#!/bin/sh
#!/bin/sh
# General stuff
# General stuff
Line 74: Line 76:
Use this method, you won't need to change the codes even <code>mate.mate-polkit</code> gets an update.
Use this method, you won't need to change the codes even <code>mate.mate-polkit</code> gets an update.


<syntaxhighlight>
<syntaxhighlight lang=bash>
#!/bin/sh
#!/bin/sh
...
...