Icon not created / displayed in WebDM when side-loading?

Martin Albisetti martin.albisetti at canonical.com
Mon Feb 2 18:22:16 UTC 2015


On Sat, Jan 31, 2015 at 8:49 PM, Thomas Amberg <tamberg at yaler.net> wrote:
>
>
> when side-loading a Snappy app from a dev machine to the BeagleBone, using
>
> $ snappy-remote --url=ssh://ubuntu@webdm.local:22 install ./my-app_1.0.0_all.snap
>
> the icon (provided as an SVG) seems not to be converted to PNG (and not displayed in WebDM).
>
>
> Only apps installed from the store seem to have a corresponding PNG:
>
> $ ls /writable/system-data/var/lib/apps/webdm/0.1/icons/
>
> com.ubuntu.snappy.hello-world.png
> com.ubuntu.snappy.webdm.png
>
> Any idea what’s wrong?

Yes.
The conversion from SVG to PNG happens on the server when you upload
to the store. Side-loaded apps don't go through the store, so don't
get a PNG generated. When you install an app, it pulls the PNG from
the server to cache it locally.
I'm not sure what the best way to fix it would be, side-loaded apps
are suppose to be short-lived and not used in production. Browsers
aren't great at rendering SVGs, we tested out showing the SVGs in the
browser but most of the time browsers couldn't render them.
In the future, we might be able to look for PNGs in the packages
instead of SVGs and display them, to work around this issue.


-- 
Martin



More information about the snappy-app-devel mailing list