From 7f8df9d7125d4307421d066b1f44d5cc9ea6ab01 Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Wed, 9 Feb 2022 16:21:47 +1100 Subject: [PATCH] Use "title" argument for display --- src/PIL/ImageShow.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/PIL/ImageShow.py b/src/PIL/ImageShow.py index c6829ad4b..eafbff875 100644 --- a/src/PIL/ImageShow.py +++ b/src/PIL/ImageShow.py @@ -248,7 +248,7 @@ class DisplayViewer(UnixViewer): def get_command_ex(self, file, title=None, **options): command = executable = "display" if title: - command += f" -name {quote(title)}" + command += f" -title {quote(title)}" return command, executable def show_file(self, path=None, **options): @@ -270,7 +270,7 @@ class DisplayViewer(UnixViewer): raise TypeError("Missing required argument: 'path'") args = ["display"] if "title" in options: - args += ["-name", options["title"]] + args += ["-title", options["title"]] args.append(path) subprocess.Popen(args)