snapd REST API documentation

2017-02-21 Thread Robert Ancell
Hi all, I've spent some time updating the snapd REST API documentation for snapd [1]. It should be now pretty comprehensive. If you've looked at these docs in the past and found information missing, please look again. (Of course, if you're directly using this API please consider the Go library

Re: Position-independent code and Ubuntu 16.10

2017-02-21 Thread Joseph Rushton Wakeling
On 22/02/17 00:08, Seth Arnold wrote: Libraries are usually compiled as position independent code; this has not changed. OK, fair enough. In my case I think it was the C-library parts of the D standard library that were being compiled without PIC. Seems OK to assume this may have been a

Re: Position-independent code and Ubuntu 16.10

2017-02-21 Thread Seth Arnold
On Tue, Feb 21, 2017 at 11:01:48PM +0100, Joseph Rushton Wakeling wrote: > OK, thanks for the clarification. So this raises the question ... > can/should snapcraft ensure this option is used when building snap packages? > > It's obviously not an issue for most apps, but any snap exposing a >

Re: New stable "core" and "ubuntu-core" snaps released

2017-02-21 Thread Manik Taneja
On Tue, Feb 21, 2017 at 9:25 AM, Paul Larson wrote: > > 5. disable updates (for added paranoia, because yes I really did see a > stable update to a snap that triggered a reboot in the middle of a > test once!) > how are you disabling updates? fyi, the

Re: Position-independent code and Ubuntu 16.10

2017-02-21 Thread Joseph Rushton Wakeling
On 21/02/17 22:47, Seth Arnold wrote: On Mon, Feb 20, 2017 at 10:12:25PM +0100, Joseph Rushton Wakeling wrote: First, I'd thought that Ubuntu 16.04's GCC already generated position-independent code by default, but was this in fact only introduced with 16.10 ... ? Correct, this was changed for

Re: Position-independent code and Ubuntu 16.10

2017-02-21 Thread Seth Arnold
On Mon, Feb 20, 2017 at 10:12:25PM +0100, Joseph Rushton Wakeling wrote: > First, I'd thought that Ubuntu 16.04's GCC already generated > position-independent code by default, but was this in fact only introduced > with 16.10 ... ? Correct, this was changed for 16.10:

Re: network namespaces

2017-02-21 Thread Jamie Strandboge
On Tue, 2017-02-21 at 12:39 +0100, Luca Dionisi wrote: > Are network namespaces supported in snaps? > > In my RaspberryPi3 I have a snap which has been installed with --devmode. > Inside the snap I have exposed the command 'bash'. I exec that bash as > root. Then I try to create a network

Re: snap connect myapp:camera out-of-the-box

2017-02-21 Thread Gustavo Niemeyer
Okay, agreed on all points. The near-to-medium term plan is to have snaps able to request access to particular interfaces on demand. We have a good pipeline to implement this already. We just need to connect the dots. On Tue, Feb 21, 2017 at 2:12 PM, Jamie Strandboge

Re: snap connect myapp:camera out-of-the-box

2017-02-21 Thread Gustavo Niemeyer
Actually, we do have a mechanism that enables the automatic connections in those cases, and we can enable it in sensible cases, even for the camera. The question we should ask here is this: what is the snap purpose? Is it clear from the snap name and description that this is using a camera? If

Re: Experimental Python interpreter snap

2017-02-21 Thread Barry Warsaw
On Feb 21, 2017, at 09:30 PM, James Henstridge wrote: >So we might be able to do a single package that can both serve as a >runtime for other snaps and as a useful Python development >environment. It would be interesting to see, but my tendency is to want separate interpreter environments for

Re: Experimental Python interpreter snap

2017-02-21 Thread Sergio Schvezov
On Tue, 21 Feb 2017 19:53:31 +0700, Stuart Bishop wrote: > On 21 February 2017 at 18:35, James Henstridge > wrote: > >>> You could probably also get the pip in your snap to install packages >>> to $SNAP_USER_DATA or $SNAP_DATA if run as root. Although most devs >>>

Re: Experimental Python interpreter snap

2017-02-21 Thread James Henstridge
On 21 February 2017 at 20:53, Stuart Bishop wrote: > On 21 February 2017 at 18:35, James Henstridge > wrote: > >>> You could probably also get the pip in your snap to install packages >>> to $SNAP_USER_DATA or $SNAP_DATA if run as

Re: Experimental Python interpreter snap

2017-02-21 Thread Stuart Bishop
On 21 February 2017 at 18:35, James Henstridge wrote: >> You could probably also get the pip in your snap to install packages >> to $SNAP_USER_DATA or $SNAP_DATA if run as root. Although most devs >> would stick to using virtualenvs outside of the snap for this,

Re: the ppp interface (and general renaming/transitioning of interfaces)

2017-02-21 Thread Jenny Murphy
Hi, Just about this ppp interface. I would like to use it from the snap I have developed myself. So how to I invoke it ? At the moment I am calling the command line pppd from my snap java code. However I think I should be doing something different to invoke ppp from within the core snap ? I am

network namespaces

2017-02-21 Thread Luca Dionisi
Are network namespaces supported in snaps? In my RaspberryPi3 I have a snap which has been installed with --devmode. Inside the snap I have exposed the command 'bash'. I exec that bash as root. Then I try to create a network namespace. It fails. $ sudo myapp.bash # ip netns add ns0

Re: Experimental Python interpreter snap

2017-02-21 Thread James Henstridge
On 21 February 2017 at 16:57, Stuart Bishop wrote: > On 20 February 2017 at 11:41, James Henstridge > wrote: >> On 20 February 2017 at 10:45, XiaoGuo Liu wrote: >>> Hi James, >>> >>> Nice. This is a nice

Re: xdg-open doesn't work only in xubuntu (v2)

2017-02-21 Thread Vasilisc
20.02.2017 16:56, Oliver Grawert пишет: ah, sorry, i was wrong about the $SNAP in the PATH ... i grabbed your example and changed it like: http://paste.ubuntu.com/24033840/ this definitely works on a unity desktop, i am not sure about desktops that deliberately replace xdg-open with something

Re: Experimental Python interpreter snap

2017-02-21 Thread Stuart Bishop
On 20 February 2017 at 11:41, James Henstridge wrote: > On 20 February 2017 at 10:45, XiaoGuo Liu wrote: >> Hi James, >> >> Nice. This is a nice example showing how to reduce a python snap package. A >> few days ago, I also made a small