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: