disable the watchdog by default

The systemd watchdog has three big problems:
- it wrongly restarts KWin in some cases after suspend
- it wrongly restarts KWin in some OOM situations
- it wrongly restarts KWin when doing a live upgrade from the watchdog being disabled to it being enabled

Each of those cases can cause users to lose data and in the upgrade case even require repairing
the system manually, which is not acceptable.
This commit keeps the watchdog code in place for now; the decision to remove it or what to
replace it with isn't as urgent.
This commit is contained in:
Xaver Hugl 2024-08-16 15:24:23 +02:00
parent fa35c8bbac
commit 74b04d3e4e

View file

@ -3,10 +3,6 @@ Description=KDE Window Manager
PartOf=graphical-session.target PartOf=graphical-session.target
[Service] [Service]
Type=notify-reload
ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/kwin_wayland_wrapper --xwayland ExecStart=@CMAKE_INSTALL_FULL_BINDIR@/kwin_wayland_wrapper --xwayland
BusName=org.kde.KWinWrapper BusName=org.kde.KWinWrapper
Slice=session.slice Slice=session.slice
WatchdogSec=15s
NotifyAccess=all
WatchdogSignal=SIGHUP