hyprland-wiki/pages/Hypr Ecosystem/hyprpolkitagent.md

26 lines
1,021 B
Markdown
Raw Permalink Normal View History

2024-10-16 16:29:27 +02:00
---
weight: 8
title: hyprpolkitagent
---
hyprpolkitagent is a polkit authentication daemon. It is required for GUI applications to
be able to request elevated privileges.
If it's not available in your distro's repositories, you can either [build it from source](https://github.com/hyprwm/hyprpolkitagent)
or use a different agent, e.g. [KDE's one](https://github.com/KDE/polkit-kde-agent-1/).
## Usage
2024-10-16 16:46:18 +02:00
Add `exec-once = systemctl --user start hyprpolkitagent` to your Hyprland config and restart hyprland.
2024-10-16 16:29:27 +02:00
(obviously change that to whatever you are using if you are not using the hypr one)
If Hyprland is started with [uwsm](../../Useful-Utilities/Systemd-start), you can autostart the polkit agent with the command `systemctl --user enable --now hyprpolkitagent.service`.
2024-10-16 16:29:27 +02:00
On distributions that use a different init system, such as Gentoo, it may be
necessary to use
`exec-once=/usr/lib64/libexec/hyprpolkitagent` instead.
Other possible paths include
`/usr/lib/hyprpolkitagent` and
`/usr/libexec/hyprpolkitagent`.