Use title for display

This commit is contained in:
Andrew Murray 2021-10-23 15:53:08 +11:00
parent 862be7cbcd
commit b3e690a270

View File

@ -189,8 +189,10 @@ class UnixViewer(Viewer):
class DisplayViewer(UnixViewer):
"""The ImageMagick ``display`` command."""
def get_command_ex(self, file, **options):
def get_command_ex(self, file, title=None, **options):
command = executable = "display"
if title:
command += f" -name {quote(title)}"
return command, executable