From bac859f84e60800efd1338d962387b90a2be8af0 Mon Sep 17 00:00:00 2001 From: Jimmy Christensen Date: Sun, 10 Nov 2024 05:24:20 +0100 Subject: [PATCH] [cuegui] Prevent UI freeze during file preview by implementing subprocess.Popen for non-forking viewer applications (#1576) This is a small fix to not lock the UI when using preview in CueGUI and when using software that does not detach itself from the console. It changes it from using `subprocess.check_call` to `subprocess.Popen` Fixes #1568 --- cuegui/cuegui/Utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cuegui/cuegui/Utils.py b/cuegui/cuegui/Utils.py index b59789d4b..2dfeb3673 100644 --- a/cuegui/cuegui/Utils.py +++ b/cuegui/cuegui/Utils.py @@ -666,7 +666,8 @@ def launchViewerUsingPaths(paths, actionText, test_mode=False): if not test_mode: print(msg) try: - subprocess.check_call(cmd.split()) + # pylint: disable=consider-using-with + subprocess.Popen(cmd.split()) except subprocess.CalledProcessError as e: showErrorMessageBox(str(e), title='Error running Viewer command') except Exception as e: