Remove OBS shutdown error check
By removing the .sentinel file, OBS loses the last crash data, which allows OBS to start without prompts
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user