Re: Executing a script inside snap package. Is this possible?

2017-04-17 Thread Roberto Mier Escandón
er in > Plasma. > > When this part is executed within the snap package (strict confinement), > nothing happens. I have tried to include bash and dash pacakges as > stage-packages but it doesn work. Is this something that can be achieved > using the snap package system? > > Than

Re: Simple daemon settings

2017-03-16 Thread Roberto Mier Escandón
rting in the snapcraft.yaml? Current >> behavior is that it restarts the service when it exits with non zero exit >> code. But it does not get restarted otherwise. Can this be tweaked? >> > > I believe you can add: > > daemon: simple > restart-condition: always > &

Re: plugins in snap?

2017-03-03 Thread Roberto Mier Escandón
Thanks Leo, I didn't know about that discussion. I'll take a look. On 03/03/17 20:41, Leo Arias wrote: > Hello Roberto, > > On Fri, Mar 3, 2017 at 6:37 AM, Roberto Mier Escandón  > wrote: >> Maybe one silly question: I've moved plugins to be in snap/plugins p

plugins in snap?

2017-03-03 Thread Roberto Mier Escandón
Hi, Maybe one silly question: I've moved plugins to be in snap/plugins path. All works fine, but I see them included in the snap package. Is there any way to avoid this?. I don't want the plugins there. Thanks. -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscrib

Re: content interface, DENIED mounting $SNAP/mydir

2017-03-03 Thread Roberto Mier Escandón
Hey Kyle, If this is of help, you can check how I did it in the case of Collabora Office snap [1] using Nextcloud [2] docs in write mode. I created the target folder into "snap/" and then I referred it in snapcraft.yaml plug skipping "snap" parent, like this: target: though the folder was indee

Re: weird behaviour related with fonts in a snap

2017-03-02 Thread Roberto Mier Escandón
02/03/17 09:27, Alberto Mardegan wrote: > On 01/03/2017 13:37, Roberto Mier Escandón  wrote: >> In source code I don't see any reference to any path related with fonts, >> however something else outside of the snap is needed and I cannot find >> what. Anybody has hit an

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
iaoGuo Liu wrote: > Hi Roberto, > > In that case, you can just run your own script in the command in stead of > directly launching your app. In your script, just do whatever thing there. > > Best regards, > XiaoGuo > > On Tue, Feb 28, 2017 at 9:51 PM, Robe

Re: snapcraft 2.27 has been released

2017-02-28 Thread Roberto Mier Escandón
Other thing I've seen, the environment set there does not affect the stop command. Is there any way to do it? Am I doing anything wrong?. Cheers. On 28/02/17 14:51, Roberto Mier Escandón  wrote: > Hey guys, > > Couldn't we have environment property pointing also to a file

Re: snapcraft 2.27 has been released

2017-02-28 Thread Roberto Mier Escandón
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. Cheers. On 24/02/17 20:05, Kyle Fazzari wrote: > > > On 02/24/2017 10:49 AM, Claud

Re: chroot into a snap

2017-02-13 Thread Roberto Mier Escandón
Thanks Jamie, I've reopen one [1] that I marked as invalid when I plugged docker-support. [1] https://bugs.launchpad.net/snappy/+bug/1663175 On 13/02/17 17:04, Jamie Strandboge wrote: > On Mon, 2017-02-13 at 09:40 -0600, Jamie Strandboge wrote: >> On Fri, 2017-02-10 at 14:44 +0100

interfaces composition

2017-02-13 Thread Roberto Mier Escandón
Hey, Just an idea. In my last snap I needed docker-support interface for only having access to use mknod and chroot. Compared with the big list of permissions that interface allows and I don't need, I wonder if we could have an internal kind of structure of interfaces so that there are some of the

Re: chroot into a snap

2017-02-10 Thread Roberto Mier Escandón
ring /media to another snap via the content interface). > > The other way would be that the nextcloud snap somehow exposes a pointer > for the office snap where to look for its data and then it can either use > the path connected via the content or via the removable-media plu

Re: chroot into a snap

2017-02-10 Thread Roberto Mier Escandón
Ah, thanks. I'd better use content then. On 10/02/17 09:38, Simon Fels wrote: > On 10.02.2017 09:16, Roberto Mier Escandón  wrote: >> I tried content sharing and works fine in this case, Nextcloud exposing >> a slot to its documents folder. I think I saw somewhere this is onl

Re: chroot into a snap

2017-02-10 Thread Roberto Mier Escandón
, Kyle Fazzari wrote: > On Feb 9, 2017 10:21 PM, "Simon Fels" wrote: > > On 09.02.2017 17:08, Thomas Voß wrote: >> On Thu, Feb 9, 2017 at 2:38 PM, Roberto Mier Escandón  >> wrote: >>> Because this will use nextcloud documents, and they are internal to &

Re: chroot into a snap

2017-02-09 Thread Roberto Mier Escandón
gt; > On Thu, Feb 9, 2017 at 2:26 PM, Roberto Mier Escandón  > wrote: >> awsome Thomas!. You got it!. Having the doc in any snap path can be >> rendered. >> So, that answers the point of chroot working ok, but now there is >> another problem: How can I access document

Re: chroot into a snap

2017-02-09 Thread Roberto Mier Escandón
; On Thu, Feb 9, 2017 at 11:35 AM, Roberto Mier Escandón  > wrote: >> >> Hey Thomas, >> >> You can find the snap at [1] >> Atttached are traces for: >> >> Devmode: >> - service.txt are the logs of the service >> - syslog.txt and snappy-debug.

Re: dlopen cannot load shared library

2017-02-09 Thread Roberto Mier Escandón
Thanks, The problem was, indeed, a fail in the path to a library. Your answers were key to solve it. The dlopen() now works ok. On 03/02/17 13:59, Mark Shuttleworth wrote: > On 03/02/17 12:41, Loïc Minier wrote: >> In classic mode, you see libraries from your classic Ubuntu system >> including X

Re: IPC between snaps

2017-02-09 Thread Roberto Mier Escandón
t existing ones, grep for socket > under github.com/snapcore/snapd/interfaces. > > Cheers, > - Loïc > > On Thu, Feb 9, 2017 at 10:27 AM, Roberto Mier Escandón  < > roberto.escan...@canonical.com> wrote: > >> Hi, >> >> Is there any way to communicate pr

IPC between snaps

2017-02-09 Thread Roberto Mier Escandón
Hi, Is there any way to communicate processes in different snaps using pipes?. How can it be done in this or other way? Cheers. -- Snapcraft mailing list Snapcraft@lists.snapcraft.io Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft

chroot into a snap

2017-02-08 Thread Roberto Mier Escandón
Hey engineers, I need some ideas to solve this: I'm trying to snap collaboraoffice online but that's not being easy at all. FYI: this is a kind of Google Drive stuff so that when you request in your browser certain document, it is rendered and can be edit by many at the same time, etc.. Though I'

daemon launches another shell

2017-02-03 Thread Roberto Mier Escandón
Hey, Does anybody knows if openning a new shell from a daemon startup script will be allowed in confined mode?. The case is this: the daemon starts as root and tries to execute certain script as another user su otheruser --shell=/bin/sh -c "$SNAP/bin/thescript" in devmode, apparmor is giving me

dlopen cannot load shared library

2017-02-03 Thread Roberto Mier Escandón
Hi, I'm having a problem with a snap which start certain daemon when installed. This daemon tries to load certain shared library but it's not able to do it even in devmode [1]. However it loads it well in classic mode. The library is in a rw path, provided directly to a dlopen method [1]. Have any