packaging questions

Sergio Schvezov sergio.schvezov at canonical.com
Mon Aug 10 15:34:53 UTC 2015


On Sun, Aug 09, 2015 at 09:46:45PM -0300, Ricardo Kirkner wrote:
> Hi, I'm creating a snappy pkg for p910nd[0], and I have almost
> everything in a working state, but I still got some issues to figure
> out.
> 
> 1. how can I make it so a config file is placed in the right location
> when the pkg is installed ? whatever I put into the source folder gets
> written to /apps/<pkg>.sideload/<version>/ but when running snappy
> config it expects the file in /var/lib/apps/<pkg>.sideload/<version>/

What I did was to have this logic in my launching _wrapper_. I guess
we need to define a template/default that gets copied over. Or
implicitly running 'snappy config' internally for the package so it
generates its own configuration before starting.

I prefer the latter.

> 2. is there an easy way to get the config also exposed via the webdm
> ui, so that users can edit it from the webui?

It is a missing feature, on the roadmap, jus no resources for it.

> 3. the pkg provides a service, but the service will not start properly
> unless a printer has been plugged in. Is there a way to restart the
> service via the webui? or maybe I need to add some dbus rules so it
> restarts when the device is plugged?

Not sure how to fix this one. Restarting services is not there yet in
the webui either. In any case I suggest trying to make your service
resilient.

Cheers



More information about the snappy-app-devel mailing list