Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 353153

Summary: dev-python/imaging-1.1.7 launches multiple image viewers in .show()
Product: Gentoo Linux Reporter: Denilson Sá Maia <denilsonsa>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://hg.effbot.org/pil-2009-raclette/changeset/355
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: imaging-1.1.7-dont-run-multiple-viewers.patch

Description Denilson Sá Maia 2011-01-29 16:08:08 UTC
There is a known bug in dev-python/imaging-1.1.7 that has a trivial fix:
http://hg.effbot.org/pil-2009-raclette/changeset/355
http://mail.python.org/pipermail/image-sig/2011-January/006633.html

When calling ".show()", it launches ALL available image viewers, instead of the first one. Needless to say, it is very inconvenient, as most people will have 'display' (from imagemagick) as well as 'xdg-open'.

The solution is very simple, just add "return" statement to one line. See the patch from the changeset linked above.
Comment 1 Denilson Sá Maia 2011-01-29 16:14:10 UTC
Created attachment 261009 [details, diff]
imaging-1.1.7-dont-run-multiple-viewers.patch

You can either use this attached patch (that just adds the "return" statement), or get this one:

http://hg.effbot.org/pil-2009-raclette/changeset/1875cffafc5d/raw/pil-2009-raclette-355.diff
Comment 2 Patrice Clement gentoo-dev 2014-12-18 20:30:23 UTC
  18 Dec 2014; Patrice Clement <monsieurp@gentoo.org>
  Add patch to avoid launching multiple image viewers. Fix bug 353153.

Patch added to the tree. Thanks!