diff --git a/src/PIL/ImageShow.py b/src/PIL/ImageShow.py index 725496355..987989e6f 100644 --- a/src/PIL/ImageShow.py +++ b/src/PIL/ImageShow.py @@ -240,11 +240,13 @@ class UnixViewer(Viewer): command = self.get_command(path, **options) kwargs = { + "shell": True, "stdout": subprocess.PIPE, + "stderr": subprocess.PIPE } th = threading.Thread( - target=subprocess.run, args=(command.split(),), kwargs=kwargs, name=path + target=subprocess.run, args=(command, ), kwargs=kwargs, name=path ) self.opened_images.append(th.name) th.start()