From d78bc759cc5b8be1ac344b273a4bb5cf06b2d5b9 Mon Sep 17 00:00:00 2001 From: Mihai Fufezan Date: Sun, 3 Nov 2024 23:36:08 +0200 Subject: [PATCH] systemd/hyprland-session: add OnFailure and OnSuccess commands --- systemd/hyprland-session.service.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/systemd/hyprland-session.service.in b/systemd/hyprland-session.service.in index 4ea83397d4b..4ef4cca9596 100644 --- a/systemd/hyprland-session.service.in +++ b/systemd/hyprland-session.service.in @@ -15,5 +15,7 @@ Type=notify ExecStart=@BINDIR@/Hyprland ExecStop=@BINDIR@/hyprctl dispatch exit ExecStopPost=systemctl --user unset-environment DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP +OnFailure=systemctl --user unset-environment DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP +OnSuccess=systemctl --user unset-environment DISPLAY WAYLAND_DISPLAY HYPRLAND_INSTANCE_SIGNATURE XDG_CURRENT_DESKTOP Restart=on-failure Slice=session.slice