diff options
author | BlackNoxis <steven.darklight@gmail.com> | 2014-11-21 16:52:02 +0200 |
---|---|---|
committer | BlackNoxis <steven.darklight@gmail.com> | 2014-11-21 16:52:02 +0200 |
commit | f09b0ce404160d570380506fe314f326a9412d33 (patch) | |
tree | 58af4f0f590f06550fd98b01ff5e3de624329b38 /dev-python/imaging/files/imaging-1.1.7-no-xv.patch | |
parent | 2ef47d494f82c5e68de1edc169d3ad66a6b3831b (diff) |
Safe keeping the package dev-python/imaging
Diffstat (limited to 'dev-python/imaging/files/imaging-1.1.7-no-xv.patch')
-rw-r--r-- | dev-python/imaging/files/imaging-1.1.7-no-xv.patch | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/dev-python/imaging/files/imaging-1.1.7-no-xv.patch b/dev-python/imaging/files/imaging-1.1.7-no-xv.patch new file mode 100644 index 00000000..1cbaf515 --- /dev/null +++ b/dev-python/imaging/files/imaging-1.1.7-no-xv.patch @@ -0,0 +1,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__": |