From 6a84854da937ea437d26960a9f45bcc174b8e1da Mon Sep 17 00:00:00 2001 From: alv2017 Date: Tue, 8 Feb 2022 21:53:25 +0200 Subject: [PATCH] src/PIL/ImageShow.py: UnixViewers.show_file() method have been updated. --- src/PIL/ImageShow.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()