Merge pull request #5788 from radarhere/display_title

Use title for display
This commit is contained in:
Hugo van Kemenade 2021-10-23 11:36:17 +03:00 committed by GitHub
commit 7250e3db52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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