<div dir="ltr">So how do you resolve the problem of using multiple apps? I am developing a code editor. But i need a code beautifier. How can I call a external beautifier from my snap?<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 7, 2016 at 11:20 AM, Zygmunt Krynicki <span dir="ltr"><<a href="mailto:zygmunt.krynicki@canonical.com" target="_blank">zygmunt.krynicki@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
> On 7 Sep 2016, at 13:16, Sylvain Pineau <<a href="mailto:sylvain.pineau@canonical.com">sylvain.pineau@canonical.com</a>> wrote:<br>
><br>
> Hello,<br>
><br>
> I noticed that I was not able to call other snap commands from my own snap on my desktop.<br>
> So I tested what was defined using the hello-world.env command.<br>
><br>
> On desktop (with ubuntu-core 16.04.1 rev 352)<br>
><br>
> $ hello-world.env | grep ^PATH=<br>
> PATH=/usr/sbin:/usr/bin:/sbin:<wbr>/bin:/usr/games<br>
><br>
> But on a true snappy system (with ubuntu-core 16.04.1 rev 453), I get:<br>
><br>
> $ hello-world.env | grep ^PATH=<br>
> PATH=/home/ubuntu/bin:/home/<wbr>ubuntu/.local/bin:/usr/local/<wbr>sbin:/usr/local/bin:/usr/sbin:<wbr>/usr/bin:/sbin:/bin:/usr/<wbr>games:/usr/local/games:/snap/<wbr>bin<br>
><br>
> Is there any reason to not have /snap/bin as part of the $PATH available to snap commands?<br>
<br>
</span>Snaps cannot execute other snaps. The PATH difference is caused by how snap-confine behaves when it runs on classic but in general even if you used an absolute path you would not be able to start any other applications from /snap/bin. Allowing this would create an implicit interface (dependency between your snap and some other, perhaps third party, snap).<br>
<br>
If you need access to executables that you control you can use the content interface to bind mount another snap into your own snap and execute those commands directly, with the same security profile as the running application.<br>
<br>
Best regards<br>
<span class="HOEnZb"><font color="#888888">ZK<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/snapcraft</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Alejandro Vera<br><a href="http://www.recicleta.cl" target="_blank">http://www.recicleta.cl</a><br></div>
</div>