mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-11-11 04:07:21 +03:00
add eog support for Ubuntu Image Viewer
This commit is contained in:
parent
c3d6831610
commit
929d165d8d
|
@ -156,12 +156,16 @@ else:
|
|||
|
||||
# implementations
|
||||
|
||||
# The default Image Viewer of Ubuntu using the command "eog" in the terminal.
|
||||
# Reference: https://help.gnome.org/users/eog/stable/commandline.html.en
|
||||
|
||||
class DisplayViewer(UnixViewer):
|
||||
def get_command_ex(self, file, **options):
|
||||
command = executable = "display"
|
||||
command = executable = "display" or "eog"
|
||||
return command, executable
|
||||
|
||||
if which("display"):
|
||||
|
||||
if which("display" or "eog"):
|
||||
register(DisplayViewer)
|
||||
|
||||
class XVViewer(UnixViewer):
|
||||
|
|
Loading…
Reference in New Issue
Block a user