Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 353153 - dev-python/imaging-1.1.7 launches multiple image viewers in .show()
Summary: dev-python/imaging-1.1.7 launches multiple image viewers in .show()
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal with 1 vote (vote)
Assignee: Python Gentoo Team
URL: http://hg.effbot.org/pil-2009-raclett...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-29 16:08 UTC by Denilson Sá Maia
Modified: 2014-12-18 20:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
imaging-1.1.7-dont-run-multiple-viewers.patch (imaging-1.1.7-dont-run-multiple-viewers.patch,350 bytes, patch)
2011-01-29 16:14 UTC, Denilson Sá Maia
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!