How do you add config files - "file" can't find it's configuration files?

Mark Shuttleworth mark at ubuntu.com
Sat Sep 17 00:58:24 UTC 2016


On 16/09/16 07:05, Spencer wrote:
> 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.

Yes, but this does mean patching the upstream code to be aware of those
environment settings.

Mark




More information about the Snapcraft mailing list