Closed paolostivanin closed 2 years ago
In looking at your code, it looks like you are overwriting the astap path with a new default path. In order to make this work, you would need another check to see if it exists at this other path location.
The path variable here is not the PATH environment variable, or a list of paths to search, but a part of a struct of default paths to different programs.
Thanks, you're right! Is it better now?
I think what you are looking for is:
if(QFile("/usr/bin/astap").exists()) not QFile("/usr/bin/astap").exists()) ?
On some distro (openSUSE, Fedora, etc), ASTAP is packaged so that it's installed on
/usr/bin
. This commit add support for detecting ASTAP in the aforementioned location.