Skip to content

Commit

Permalink
[cuegui] Prevent UI freeze during file preview by implementing subpro…
Browse files Browse the repository at this point in the history
…cess.Popen for non-forking viewer applications (AcademySoftwareFoundation#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 AcademySoftwareFoundation#1568
  • Loading branch information
lithorus authored Nov 10, 2024
1 parent be13b4f commit bac859f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cuegui/cuegui/Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit bac859f

Please sign in to comment.