<div dir="ltr"><p dir="ltr">Well, one can "work" anywhere really. The analogy with $HOME is interesting, for example, because one doesn't usually write in $HOME itself, but rather creates a per-application directory and writes into that instead. So very similar.<br></p>
<div class="gmail_quote">That said, countering my own point there's the argument that there's nothing useful one can do with CWD being $SNAP, I think?</div><div class="gmail_quote"><br></div><div class="gmail_quote">So it'd probably be fine with changing it to $SNAP_DATA too, as a default. People will find out about $SNAP_USER_DATA when they need to.</div><div class="gmail_quote"><div><br></div></div><div class="gmail_quote"><br></div><div class="gmail_quote">On Mar 4, 2016 12:25 PM, "Mark Shuttleworth" <<a href="mailto:mark@ubuntu.com" target="_blank">mark@ubuntu.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">On 03/03/16 21:59, Didier Roche wrote:<br>
> Discussing with Michael yesterday, it seems that this wasn't really<br>
> discussed in the past and may be a good change for 16.04 for the big<br>
> cleanup time :)<br>
> I was first surprised to see that when starting an application, the<br>
> current directory was SNAP_APP_PATH.<br>
><br>
> In traditional systems, the current directory is generally a path where<br>
> the app have write access to (like $HOME or the one your are in for CLI).<br>
> I realize that in most of the snappy apps/services I'm writing, I'm<br>
> doing `cd $SNAP_APP_DATA_PATH` as first thing in most of them.<br>
><br>
> In that case, is there any particular reason to set the current working<br>
> directory to SNAP_APP_PATH instead of SNAP_APP_DATA_PATH or would a<br>
> change to set it to the latter makes sense for 16.04?<br>
<br>
<br>
Makes sense to me that the current working directory should be a place<br>
one can work :)<br>
<br>
Mark<br>
<br>
--<br>
snappy-devel mailing list<br>
<a href="mailto:snappy-devel@lists.ubuntu.com" target="_blank">snappy-devel@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snappy-devel" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/snappy-devel</a><br>
</blockquote></div>
<br clear="all"><div><br></div>-- <br><div class="gmail_signature">gustavo @ <a href="http://niemeyer.net" target="_blank">http://niemeyer.net</a></div></div>