I never like hard coded paths. Can YAML files somehow configure what C pre
processor definitions we get during compilation? An if-def could be used in
places where the program is to locate resources and so use either $SNAP
prepended or something else when not run as a snap.
> On Sep 16, 2016, at 7:45 AM, Jamie Strandboge <ja...@canonical.com> wrote:
>> On Fri, 2016-09-16 at 08:11 -0500, Dave Chiluk wrote:
>> Can't we do something more elegant than that? Having to implement
>> wrappers and or code changes to each and every program with hardcoded
>> values seems overly painful.
>> Couldn't we do something fancy/smart with system calls such that fopen
>> prepends $SNAP to most requests? I can't imagine there being more than
>> a few system calls that would need to be modified.
> There is a bug related to this and the idea Gustavo had is that snappy
> provide a way for you to declare in your yaml a way to map /etc/magic to
> Jamie Strandboge | http://www.canonical.com
> Snapcraft mailing list
> Modify settings or unsubscribe at:
Snapcraft mailing list
Modify settings or unsubscribe at: