Peter At the beginning of tinyscreensim is:
myscriptpath=dirname "$0"
if [ -d "/usr/share/tinyscreensim" ]; then
myscriptpath="/usr/share/tinyscreensim"
fi
The directory $myscriptpath must have the src and include directories from tinyscreensim repository. So if you download the code and run tinyscreensim without copying it, it will work because dirname $0
will be the git repo. If you install tinyscreensim in /usr/bin, create /usr/share/tinyscreensim, and copy src and include there, it will work because /usr/share/tinyscreensim overrides the "/usr/bin" from dirname $0
. (You could also copy src and include into /usr/bin but that is an abomination. 😀 ).