Polkit: Difference between revisions

imported>Coolshaurya
m Use proper code tag
imported>Sorrel
mention authentication agents briefly
Line 6: Line 6:


Polkit is enabled by default. If you wish to disable it, you can set <code>security.polkit.enable</code> to false.
Polkit is enabled by default. If you wish to disable it, you can set <code>security.polkit.enable</code> to false.
== Authentication agents ==
If Polkit seems not to work properly, you could check that you have an [https://wiki.archlinux.org/title/Polkit#Authentication_agents authentication agent] installed and running (especially if you use a more niche desktop environment like e.g. i3wm).
For example, <code>polkit_gnome</code> is a GNOME-based authentication agent, but it will usually only autostart when used with GNOME, KDE, or Unity (examine its autostart file in <code>etc/xdg/autostart/polkit-gnome-authentication-agent-1.desktop</code> for details); otherwise you will need to start it yourself, e.g. by copying that autostart file to <code>~/.config/autostart/</code> and removing the parts that restrict it to GNOME/KDE/Unity.