feat(systemd): make polkit dependent on compositor target

This commit is contained in:
Price Hiller 2023-08-20 17:31:14 -05:00
parent d0b36d2ff6
commit 67944d7e73
Signed by: Price
SSH Key Fingerprint: SHA256:Y4S9ZzYphRn1W1kbJerJFO6GGsfu9O70VaBSxJO7dF8
2 changed files with 9 additions and 3 deletions

View File

@ -0,0 +1,4 @@
[Unit]
Description=Compositor target for WM to be launched manually
Requires=graphical-session.target
After=graphical-session.target

View File

@ -1,14 +1,16 @@
[Unit]
Description=KDE PolicyKit Authentication Agent
PartOf=graphical-session.target
PartOf=compositor.target
After=compositor.target
[Service]
ExecStart=/usr/lib/polkit-kde-authentication-agent-1
ExecStop=kill -HUP $MAINPID
BusName=org.kde.polkit-kde-authentication-agent-1
ExecCondition=/bin/sh -c "[ -n $WAYLAND_DISPLAY ]"
Slice=background.slice
BusName=org.kde.polkit-kde-authentication-agent-1
TimeoutSec=5sec
Restart=on-failure
[Install]
WantedBy=graphical-session.target
WantedBy=compositor.target