image loaders (gdkpixbuf) not easy to integrate

Bug #1576289 reported by Sebastien Bacher
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Snapcraft
New
Undecided
Unassigned

Bug Description

gtk softwares need gdkpixbuf image loaders to be able to display images (jpg, png, svg, ...)

if you want that to work you need to
- include the loaders
- generate a cache (or ship a static one in the source and copy it)
- include mimetype definition (or a static mime.cache) so the loader knows what image type is needed
- set those environment variable

"# Gdk-pixbuf loaders
export GDK_PIXBUF_MODULE_FILE=$SNAP/usr/lib/$ARCH/gdk-pixbuf-2.0/2.10.0/loaders.cache
export GDK_PIXBUF_MODULEDIR=$SNAP/usr/lib/$ARCH/gdk-pixbuf-2.0/2.10.0"

ideally snapcraft would do that for you

tags: added: snap-desktop-issue
description: updated
description: updated
Revision history for this message
Leo Arias (elopio) wrote :

Hey seb, shouldn't this be solved with a shared part in the wiki that does that for you?

Changed in snapcraft:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for Snapcraft because there has been no activity for 60 days.]

Changed in snapcraft:
status: Incomplete → Expired
Revision history for this message
Sebastien Bacher (seb128) wrote :

the desktop launcher handles that, but I'm not sure if the snapcraft team consider having to use a launcher as a proper solution or a temporary one until that's handled by the tools?

Changed in snapcraft:
status: Expired → New
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.