After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 761434 - screenshots can mix up between applications
screenshots can mix up between applications
Status: RESOLVED FIXED
Product: gnome-software
Classification: Applications
Component: General
3.19.x
Other Linux
: Normal normal
: ---
Assigned To: GNOME Software maintainer(s)
GNOME Software maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-02-01 22:51 UTC by Dominique Leuenberger
Modified: 2016-02-02 09:40 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dominique Leuenberger 2016-02-01 22:51:22 UTC
This issues had been identified with by looking at the two applications

* gedit
* girl

The first to be shown loads the screenshot, which by upstream is named 'screenshot.png'

Searching for the 2nd app in gnome-software loads the description and the 'already cached' screenshot.png - which happens to be from the other application.

The screenshots are cached in ~/.cache/gnome-software/screenshots

I assume this does not happen in Fedora where screenshots are mirrored to a local infra - something we do not yet have functionally worked out completely for openSUSE.
Comment 1 Richard Hughes 2016-02-02 09:40:52 UTC
commit ec41a3671850df63dabe04f197f638956af2ddba
Author: Richard Hughes <richard@hughsie.com>
Date:   Tue Feb 2 09:38:18 2016 +0000

    Use a hashed URL prefix for the screenshot local cache filename
    
    For metadata that has not been run with 'appstream-util mirror-screenshots' all
    it takes is for one upstream to choose the same basename for the URL as another
    application before there is a clash, for instance 'Screenshot1.png'.
    
    This scheme should also stop evil apps showing the wrong screenshot for other
    applications.
    
    Resolves: https://bugzilla.gnome.org/show_bug.cgi?id=761434