feat(systemd): make polkit dependent on compositor target
This commit is contained in:
parent
d0b36d2ff6
commit
67944d7e73
4
dots/.config/systemd/user/compositor.target
Normal file
4
dots/.config/systemd/user/compositor.target
Normal file
@ -0,0 +1,4 @@
|
||||
[Unit]
|
||||
Description=Compositor target for WM to be launched manually
|
||||
Requires=graphical-session.target
|
||||
After=graphical-session.target
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user