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:
@@ -16,6 +16,9 @@ INTERVAL = 10
|
|||||||
running = True
|
running = True
|
||||||
|
|
||||||
def open_obs():
|
def open_obs():
|
||||||
|
kill_command = subprocess.Popen(["pkill", "obs"])
|
||||||
|
kill_command.wait()
|
||||||
|
|
||||||
# remove .sentinel dir if exists
|
# remove .sentinel dir if exists
|
||||||
if os.path.exists(os.path.expanduser("~/.config/obs-studio/.sentinel")):
|
if os.path.exists(os.path.expanduser("~/.config/obs-studio/.sentinel")):
|
||||||
print("Removing existing .sentinel directory")
|
print("Removing existing .sentinel directory")
|
||||||
|
|||||||
Reference in New Issue
Block a user