<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 9, 2016 at 9:01 AM, Nick Moffitt <span dir="ltr"><<a href="mailto:nick.moffitt@canonical.com" target="_blank">nick.moffitt@canonical.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="">> You could still store conf files in SNAP_USER_DATA to get them writable<br>
> by the users of the system.<br>
<br>
</span>Is there a good facility for install-time copying of template configs or<br>
other writeable-from-initial-state data into $SNAP_USER_DATA?<br>
<br>
The way snaps are invoked do a great job of hijacking the $*PATH<br>
variables used to find executables and shared objects, but often we need<br>
to hack in a lot of shuffling around for /usr/share and /etc and /var/<br>
to aim them at snappy's special directories.</blockquote></div><br>Yeah, that is a good question as well.</div><div class="gmail_extra">As you said, for now there is a lot of hacking to get access to those and since there is no defined way (I'd know of) to provide templates.</div><div class="gmail_extra">But there is no need every app (re-)implements such hacks that in some other way.</div><div class="gmail_extra">So +1 for an official snapcraft/snap way to make files available in $SNAP_USER_DATA and such.</div><div class="gmail_extra"><br></div><div class="gmail_extra">I'd think of something like support for that in the copy plugin like supporting:</div><div class="gmail_extra">parts:<br> defaultconf:<br> plugin: copy<br> files:<br> etc/example.conf: $SNAP_USER_DATA/etc/foo.conf</div><div class="gmail_extra"><br></div><div class="gmail_extra">Surely there is some more magic glue involved as on "snap building time" the path of $SNAP_USER_DATA and such isn't fix IIRC (could change per setup and in future).</div><div class="gmail_extra">Worth a feature request bug? I'll wait for the discussion first.</div><div class="gmail_extra"><br><br>-- <br></div><div class="gmail_extra"><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><span style="color:rgb(136,136,136);font-size:12.8px">Christian Ehrhardt</span><div style="color:rgb(136,136,136);font-size:12.8px">Software Engineer, Ubuntu Server</div><div style="color:rgb(136,136,136);font-size:12.8px">Canonical Ltd</div></div></div></div></div>
</div></div>