From 993bb23ce0e9cd1ee4a2e6f05a1225ff0df20e4f Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Mon, 14 Feb 2022 09:33:58 +1100 Subject: [PATCH] Do not manually remove temporary files on Unix in get_command() --- src/PIL/ImageShow.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/PIL/ImageShow.py b/src/PIL/ImageShow.py index 964ef57ea..f79206921 100644 --- a/src/PIL/ImageShow.py +++ b/src/PIL/ImageShow.py @@ -201,7 +201,7 @@ class UnixViewer(Viewer): def get_command(self, file, **options): command = self.get_command_ex(file, **options)[0] - return f"({command} {quote(file)}; rm -f {quote(file)})&" + return f"({command} {quote(file)}" class XDGViewer(UnixViewer):