Polkit: Difference between revisions
From wikinotes
(Created page with "Graphical manager for handling requests for elevated privileges by an application. = Documentation = <blockquote> {| class="wikitable" |- | gitlab || https://gitlab.freedeskt...") |
No edit summary |
||
Line 18: | Line 18: | ||
|} | |} | ||
</blockquote><!-- Tutorials --> | </blockquote><!-- Tutorials --> | ||
= Install = | |||
<blockquote> | |||
Most DMs have their own version of polkit-authentication-agent.<br> | |||
here is an example. | |||
{{ NOTE | | |||
untested so far }} | |||
Write a systemd service | |||
<syntaxhighlight lang="ini"> | |||
# ~.config/systemd/user | |||
[Unit] | |||
Description=Starts polkit-gnome (graphical password prompts) | |||
Requires=graphical-session.target | |||
[Service] | |||
ExecStart=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 | |||
[Install] | |||
WantedBy=graphical-session.target | |||
</syntaxhighlight> | |||
Install, enable, and start | |||
<syntaxhighlight lang="bash"> | |||
pacman -S polkit-gnome | |||
systemctl --user enable polkit-gnome.service | |||
systemctl --user start polkit-gnome.service | |||
</syntaxhighlight> | |||
</blockquote><!-- Install --> |
Revision as of 04:25, 17 October 2021
Graphical manager for handling requests for elevated privileges by an application.
Documentation
gitlab https://gitlab.freedesktop.org/polkit/polkit/
Tutorials
arch wiki https://wiki.archlinux.org/title/Polkit
Install
Most DMs have their own version of polkit-authentication-agent.
here is an example.NOTE:
untested so far
Write a systemd service
# ~.config/systemd/user [Unit] Description=Starts polkit-gnome (graphical password prompts) Requires=graphical-session.target [Service] ExecStart=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1 [Install] WantedBy=graphical-session.targetInstall, enable, and start
pacman -S polkit-gnome systemctl --user enable polkit-gnome.service systemctl --user start polkit-gnome.service