From 4365dd89b2a010fca78ba79b44b27ecc6951fca7 Mon Sep 17 00:00:00 2001 From: Dylan De Faoite Date: Sun, 18 Jan 2026 23:27:01 +0000 Subject: [PATCH] Remove OBS shutdown error check By removing the .sentinel file, OBS loses the last crash data, which allows OBS to start without prompts --- rewind/core.py | 1 - rewind/daemon.py | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/rewind/core.py b/rewind/core.py index 824a901..fff515d 100644 --- a/rewind/core.py +++ b/rewind/core.py @@ -107,7 +107,6 @@ def remove_marker(name: str) -> None: print(f"Removed marker: {name}") - def marker_exists(name: str) -> bool: markers_file = os.path.join(os.path.dirname(__file__), "markers.json") if not os.path.exists(markers_file): diff --git a/rewind/daemon.py b/rewind/daemon.py index 39f32f6..971a96f 100755 --- a/rewind/daemon.py +++ b/rewind/daemon.py @@ -16,6 +16,11 @@ INTERVAL = 10 running = True def open_obs(): + # remove .sentinel dir if exists + if os.path.exists(os.path.expanduser("~/.config/obs-studio/.sentinel")): + print("Removing existing .sentinel directory") + subprocess.Popen(["rm", "-rf", os.path.expanduser("~/.config/obs-studio/.sentinel")]) + subprocess.Popen(["obs", "--minimize-to-tray"]) def open_obs_connection(host: str, port: int, password: str) -> obs.ReqClient | None: