summaryrefslogtreecommitdiff
blob: 1cbaf515bd4a6840ffff4bec22719cbb785e52bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--- PIL/ImageShow.py.old	2009-11-30 10:28:37.000000000 +0100
+++ PIL/ImageShow.py	2009-11-30 10:29:02.000000000 +0100
@@ -149,13 +149,10 @@
         def get_command_ex(self, file, title=None, **options):
             # note: xv is pretty outdated.  most modern systems have
             # imagemagick's display command instead.
-            command = executable = "xv"
-            if title:
-                # FIXME: do full escaping
-                command = command + " -name \"%s\"" % title
+            command = executable = "xdg-open"
             return command, executable
 
-    if which("xv"):
+    if which("xdg-open"):
         register(XVViewer)
 
 if __name__ == "__main__":