<div dir="ltr">Hi Roberto,<div><br></div><div>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.</div><div><br></div><div>Best regards,</div><div>XiaoGuo</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Feb 28, 2017 at 9:51 PM, Roberto Mier Escandón  <span dir="ltr"><<a href="mailto:roberto.escandon@canonical.com" target="_blank">roberto.escandon@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey guys,<br>
<br>
Couldn't we have environment property pointing also to a file script as<br>
in the case of scriptlets. In the case of needing to set a bunch of<br>
things before launching app I'd prefer having it in that way.<br>
<br>
Cheers.<br>
<span class="im HOEnZb"><br>
On 24/02/17 20:05, Kyle Fazzari wrote:<br>
><br>
><br>
> On 02/24/2017 10:49 AM, Claudio André wrote:<br>
>><br>
>> 2017-02-17 10:49 GMT-02:00 Sergio Schvezov<br>
>> <<a href="mailto:sergio.schvezov@canonical.com">sergio.schvezov@canonical.com</a> <mailto:<a href="mailto:sergio.schvezov@canonical.com">sergio.schvezov@<wbr>canonical.com</a>>>:<br>
>><br>
>>     Hello snapcrafters!<br>
>><br>
>>     ## Setting up environment<br>
>><br>
>>     No more wrapper scripts just to setup on environment entry, this is<br>
>>     now tied into an app entry in `apps`. Here's a quick example:<br>
>><br>
>>     ```yaml<br>
>>     apps:<br>
>>         vim:<br>
>>             command: bin/vim<br>
>>             environment:<br>
>>                 VIMRUNTIME: $SNAP/share/vim/vim80<br>
>>     ```<br>
>><br>
>><br>
>> Hi, I tried to append to path (see below). It is not supported.<br>
>><br>
>> ```yaml<br>
>>     environment:<br>
>>       PATH: "$SNAP/usr/lib/jvm/default-<wbr>java/bin:$PATH"<br>
>> ```<br>
>><br>
>> I'm ok with it. But, in case this is not by design, I'm mailing you guys.<br>
><br>
> I can verify this. To clarify, this builds and runs fine, but actually<br>
> results in the PATH including the string `$PATH` instead of expanding it.<br>
><br>
> Can a snapd dev comment on this? Is that intended?<br>
><br>
><br>
><br>
<br>
--<br>
</span><div class="HOEnZb"><div class="h5">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"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr">XiaoGuo, Liu </div></div></div></div>
</div>