Merge pull request #2864 from NafisFaysal/master

Add eog support for Ubuntu Image Viewer
This commit is contained in:
wiredfool 2017-11-25 10:51:44 +00:00 committed by GitHub
commit d20f14298b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -101,6 +101,7 @@ class Viewer(object):
# --------------------------------------------------------------------
if sys.platform == "win32":
class WindowsViewer(Viewer):
@ -164,6 +165,14 @@ else:
if which("display"):
register(DisplayViewer)
class EogViewer(UnixViewer):
def get_command_ex(self, file, **options):
command = executable = "eog"
return command, executable
if which("eog"):
register(EogViewer)
class XVViewer(UnixViewer):
def get_command_ex(self, file, title=None, **options):
# note: xv is pretty outdated. most modern systems have