Thumbnailer should be packaged as a snap

Bug #1660242 reported by James Henstridge
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
thumbnailer (Ubuntu)
Triaged
High
Unassigned

Bug Description

We need to package Thumbnailer as a snap. Some requirements are:

  1. package should use strict confinement
  2. service should be usable from other strictly confined snaps
  3. thumbnailer-admin should be able to talk to thumbnailer-service
  4. ???

Revision history for this message
James Henstridge (jamesh) wrote :

thumbnailer-admin can't talk to thumbnailer-service. Ideally communication like this between apps from a single snap should be unrestricted:

https://bugs.launchpad.net/snappy/+bug/1659724

thumbnailer-service hits problems due to missing gdk-pixbuf loader cache. Seems to be an issue with desktop-launch script:

https://github.com/ubuntu/snapcraft-desktop-helpers/issues/42

Changed in thumbnailer (Ubuntu):
status: New → Triaged
importance: Undecided → High
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Thumbnailer sounds like something that should already be part of other snaps, not something that is potentially stand-alone...?

Revision history for this message
James Henstridge (jamesh) wrote :

Script to temporarily work around the gdk-pixbuf bug: http://paste.ubuntu.com/23891990/

Revision history for this message
James Henstridge (jamesh) wrote :

Fixed version of script: http://paste.ubuntu.com/23892004/

Revision history for this message
Michi Henning (michihenning) wrote :

> Thumbnailer sounds like something that should already be part of other snaps, not something that is potentially stand-alone...?

If each snap includes its own thumbnailer, each snap will redundantly store thumbnails (making the idea of a cache much less useful). Moreover, all the databases for the thumbnails will eat disk space like crazy.

Revision history for this message
James Henstridge (jamesh) wrote :

And yet another version that updates xdg-mime too: http://paste.ubuntu.com/23892565/

After generating the mime data and pixbuf loaders for both snaps, I was able to successfully perform an album art request from one snap to the other. So that's the minimum functionality working.

description: updated
Revision history for this message
James Henstridge (jamesh) wrote :

Looks like snapcraft-desktop-helpers has been updated to mostly fix these problems. Still some rough edges, but the above script should become unnecessary soon.

Revision history for this message
James Henstridge (jamesh) wrote :

A pull request for a "thumbnailer" snappy interface:

https://github.com/snapcore/snapd/pull/2783

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.