Re: Advice for non connected ubuntu-core/snap update scenario

2017-03-01 Thread Mark Shuttleworth
On 01/03/17 15:32, Thibault Jochem wrote: > I'm studying the possibility tu use ubuntu-core and snaps as base OS / > app framework for embedded computers with no access to internet. Yes, we will explicitly support this scenario, and there is quite a lot of deep design and engineering work already

Re: detect video player

2017-03-01 Thread Seth Arnold
On Thu, Mar 02, 2017 at 08:02:53AM +0300, Vasilisc wrote: > For example, > vlc come from snap package (location /snap/vlc/current/...), > smplayer - from deb package (location /usr/bin/smplayer). > > How to find available a video players in host system? Can you trust the PATH to be useful and jus

Re: detect video player

2017-03-01 Thread Vasilisc
02.03.2017 03:31, Leo Arias пишет: So, you want to know from the application itself if it's being run from inside a snap, or not? The program (in snap) needs to find a videoplayers in system. For example, vlc come from snap package (location /snap/vlc/current/...), smplayer - from deb package (

Re: Reading /etc

2017-03-01 Thread Marco Ceppi
I don't have an answer for you, but wanted to add some color to the problem. The issue lies within a dependency of the latest version of pip. Previously they vendored in a small library to do rudimentary distribution checking. In later versions, they've included the nir0s/distro python package, whi

Reading /etc

2017-03-01 Thread Facundo Batista
Hola! When calling pip from inside a snap, it (while investigating the system it's in) tries to os.listdir("/etc") which is denied to it: Mar 1 15:44:04 tanquita kernel: [16153.906524] audit: type=1400 audit(1488393844.939:99): apparmor="DENIED" operation="open" namespace="ro

Re: Creating and running tests for a snapcraft plugin

2017-03-01 Thread Leo Arias
Hello! Thanks for working on a new plugin. On Thu, Feb 23, 2017 at 5:13 PM, Joseph Rushton Wakeling wrote: > Is there a simple way to run the tests for a single plugin, rather than the > whole body of tests? The snapcraft HACKING.md doesn't offer any advice on > this point. To run all the test

Re: detect video player

2017-03-01 Thread Leo Arias
So, you want to know from the application itself if it's being run from inside a snap, or not? I don't know if we have something for that, but it certainly seems to be useful. You could check if some of the environment variables are set, but well, of course that can be cheated by exporting the var

Re: revoke a gpg key for signing assertions

2017-03-01 Thread Leo Arias
Hello! Thanks for your report. Can you please report that as a bug? https://bugs.launchpad.net/snapstore -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft

Using docker image to run snapd

2017-03-01 Thread James Cooke
Hi there, I've been struggling to get an Ubuntu 16.04 based docker image to run `snapd` - TL;DR I now know it is because systemd is not running in the image. As per Geoffroy VanCutsem's message here (https://lists.ubuntu.com/archives/snapcraft/2017-February/003013.html) I can see that one alternat

Re: snapcraft 2.27 has been released

2017-03-01 Thread Kyle Fazzari
On 02/28/2017 05:51 AM, Roberto Mier Escandón  wrote: > Hey guys, > > Couldn't we have environment property pointing also to a file script as > in the case of scriptlets. In the case of needing to set a bunch of > things before launching app I'd prefer having it in that way. That's a question fo

revoke a gpg key for signing assertions

2017-03-01 Thread Nicolino Curalli
Hi, I hit a problem with key registration e deregistration workflow. I registered a key for my first assertion, then I received a mail from Ubuntu store with the command able to remove a gpg key from backend: snapcraft revoke-key name_of_key This command don't work and produces the follow

Advice for non connected ubuntu-core/snap update scenario

2017-03-01 Thread Thibault Jochem
Hello, I'm studying the possibility tu use ubuntu-core and snaps as base OS / app framework for embedded computers with no access to internet. We can connect to those systems with a maintenance laptop, and I was thinking that this laptop could host a snapd server to push the updates once connecte

Re: HOWTO: How to snap timg (text image viewer)

2017-03-01 Thread Jamie Strandboge
On Wed, 2017-03-01 at 21:11 +1000, Michi Henning wrote: > > > > > > That's not true.  When a command or daemon in a strict mode snap gets > > executed, it runs in a different mount namespace where the file system > > root is the contents of the "core" snap.  You can verify this by > > executing t

Re: HOWTO: How to snap timg (text image viewer)

2017-03-01 Thread Michi Henning
> > That's not true. When a command or daemon in a strict mode snap gets > executed, it runs in a different mount namespace where the file system > root is the contents of the "core" snap. You can verify this by > executing the following: > >snap run --shell command_name > > .. and use tha

Re: HOWTO: How to snap timg (text image viewer)

2017-03-01 Thread James Henstridge
On 1 March 2017 at 07:13, Michi Henning wrote: > >> Upon further thinking, I believe that I did not have to use a fresh >> LXD container, because the "strict" confinement would preclude anyway >> the snap from using any of my desktop's existing system libraries. >> Isn't that indeed the case? > >

weird behaviour related with fonts in a snap

2017-03-01 Thread Roberto Mier Escandón 
Hey guys, I'm hitting a weird problem related with fonts in collabora office online snap. This product is a kind of libre office google drive, for you to take a reference how it works as user. If I confine the snap in classic mode all works perfectly. However, if I deploy it in devmode, some parts

Re: snapcraft 2.27 has been released

2017-03-01 Thread Roberto Mier Escandón 
Yes, that's what I'am doing. So, the conclusion I get from this is that environment is only valuable in the need of setting a few additional env vars. Btw, forget my last mail about the stop command not taking those values. It is working perfectly. Thanks, Cheers! On 01/03/17 00:37, XiaoGuo Liu w