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 <[email protected]> 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[1] and the idea Gustavo had is that snappy > would > provide a way for you to declare in your yaml a way to map /etc/magic to > $SNAP/etc/magic. > > [1]https://bugs.launchpad.net/snapcraft/+bug/1577514/comments/6 > > -- > Jamie Strandboge | http://www.canonical.com > > -- > Snapcraft mailing list > [email protected] > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/snapcraft -- Snapcraft mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
