Polkit: Difference between revisions
From wikinotes
No edit summary |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 21: | Line 21: | ||
= Install = | = Install = | ||
<blockquote> | <blockquote> | ||
{{ TODO | | |||
this won't work, it **must** be run as root. Could be adapted to a system service though? }} | |||
Most DMs have their own version of polkit-authentication-agent.<br> | Most DMs have their own version of polkit-authentication-agent.<br> | ||
here is an example. | here is an example. | ||
Write a user systemd service | |||
Write a systemd service | |||
<syntaxhighlight lang="ini"> | <syntaxhighlight lang="ini"> | ||
# ~.config/systemd/user | # ~.config/systemd/user |
Latest revision as of 19:26, 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
TODO:
this won't work, it **must** be run as root. Could be adapted to a system service though?
Most DMs have their own version of polkit-authentication-agent.
here is an example.Write a user 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