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

Thomas Amberg tamberg at yaler.net
Sat Feb 14 15:45:58 UTC 2015


Here’s a workaround to add a WebDM icon for manually deployed Snappy apps:

include, e.g. MY-APP.png in your Snappy app’s meta driectory, manually install the app, login and type

sudo cp /apps/MY-APP/current/meta/my-app.png /writable/system-data/var/lib/apps/webdm/0.1/icons/com.ubuntu.snappy.MY-APP.png

Kind regards,
Thomas

> On 02 Feb 2015, at 19:22, Martin Albisetti <martin.albisetti at canonical.com> wrote:
> 
> 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