Add check for existing OBS instance

.wait() is required as the command does not finish in time and will kill the new OBS instance
This commit is contained in:
2026-01-18 23:29:24 +00:00
parent 4365dd89b2
commit 47fe0e37e9

View File

@@ -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")