mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-13 09:33: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
|
# 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):
|
class DisplayViewer(UnixViewer):
|
||||||
def get_command_ex(self, file, **options):
|
def get_command_ex(self, file, **options):
|
||||||
command = executable = "display"
|
command = executable = "display" or "eog"
|
||||||
return command, executable
|
return command, executable
|
||||||
|
|
||||||
if which("display"):
|
|
||||||
|
if which("display" or "eog"):
|
||||||
register(DisplayViewer)
|
register(DisplayViewer)
|
||||||
|
|
||||||
class XVViewer(UnixViewer):
|
class XVViewer(UnixViewer):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user