From 47fe0e37e9a4f3cac449534028dc4ea67987e34d Mon Sep 17 00:00:00 2001 From: Dylan De Faoite Date: Sun, 18 Jan 2026 23:29:24 +0000 Subject: [PATCH] Add check for existing OBS instance .wait() is required as the command does not finish in time and will kill the new OBS instance --- rewind/daemon.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rewind/daemon.py b/rewind/daemon.py index 971a96f..0d519e3 100755 --- a/rewind/daemon.py +++ b/rewind/daemon.py @@ -16,6 +16,9 @@ INTERVAL = 10 running = True def open_obs(): + kill_command = subprocess.Popen(["pkill", "obs"]) + kill_command.wait() + # remove .sentinel dir if exists if os.path.exists(os.path.expanduser("~/.config/obs-studio/.sentinel")): print("Removing existing .sentinel directory")