Run polkit agent with systemd

This commit is contained in:
ItsDrike 2023-01-25 10:27:54 +01:00
parent b17982a298
commit cb6f7e60c4
No known key found for this signature in database
GPG key ID: B014E761034AF742
3 changed files with 11 additions and 1 deletions

View file

@ -15,7 +15,6 @@ exec-once = dbus-update-activation-environment --systemd WAYLAND_DISPLAY XDG_CUR
exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP exec-once = systemctl --user import-environment WAYLAND_DISPLAY XDG_CURRENT_DESKTOP
exec-once = systemctl --user start xdg-desktop-portal-hyprland exec-once = systemctl --user start xdg-desktop-portal-hyprland
exec-once = systemctl --user start wm-ready.target exec-once = systemctl --user start wm-ready.target
exec-once = /usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
exec-once = setbg exec-once = setbg
exec-once = sleep 2 && eww open bar0 exec-once = sleep 2 && eww open bar0

View file

@ -0,0 +1,10 @@
[Unit]
Description="PolicyKit authentication agent"
PartOf=graphical-session.target
[Service]
ExecStart=/usr/lib/polkit-gnome/polkit-gnome-authentication-agent-1
Restart=on-failure
[Install]
WantedBy=wm-ready.target

View file

@ -0,0 +1 @@
/home/itsdrike/.config/systemd/user/policykit-agent.service