Update systemd units

By marking as part of graphical-session we get a more graceful shutdown.

Also switched to explicit restart inside the unit. Originally I did this
with drop-ins, but this complicates wayland for now.
This commit is contained in:
David Edmundson 2020-09-28 15:25:50 +01:00 committed by Vlad Zahorodnii
parent cd9acd2e41
commit 260e75f6c9
2 changed files with 3 additions and 0 deletions

View file

@ -1,5 +1,6 @@
[Unit]
Description=KDE Window Manager
PartOf=graphical-session.target
[Service]
ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/kwin_wayland

View file

@ -1,8 +1,10 @@
[Unit]
Description=KDE Window Manager
Wants=plasma-kcminit.service
PartOf=graphical-session.target
[Service]
ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/kwin_x11 --replace
BusName=org.kde.KWin
Slice=session.slice
Restart=on-failure