Add datadir command line option
Snap packages install to $(datadir), but run from a different location. Consequently, compiling the data directory into the code (through a config define) doesn't work. See https://bugs.launchpad.net/ubuntu/+source/snapcraft/+bug/1583250 This change allows the data directory to be configured at runtime as a command line parameter, to help allow a snap package to be created.
Showing with 156 additions and 31 deletions