Bug fix: Non-portable functions
authorColin Clark <colin.clark@cclark.uk>
Sun, 3 Oct 2021 10:58:41 +0000 (11:58 +0100)
committerColin Clark <colin.clark@cclark.uk>
Sun, 3 Oct 2021 10:58:41 +0000 (11:58 +0100)
commit88fe8ed29e7396372cab9b3fe3182b0f57e3d3e8
tree1331862e36ec86015e312b2f500ee6aececbd914
parentd7d2db8b4cb3be207b14c562b6fc1cf4fc894063
Bug fix: Non-portable functions

Using argv[0] does not work with AppImages: it contains the path to
where the AppImage was called from, and not the path where the
executable is running.

This solution uses the whereami package from:
https://github.com/gpakosz/whereami
src/Makefile.am
src/main.c