Hello,
recently I tried to build AntScope2 for Linux as a package (RPM, DEB or so). It generally works, but there is a problem with finding data files. The package installs a binary in /usr/bin but the data files are usually in /usr/share/. Now the program looks for them in /usr/bin/Resources.
I think that using
QStringList QStandardPaths::standardLocations(QStandardPaths::StandardLocation AppDataLocation)
may help finding the resources.
There is also
QString QStandardPaths::writableLocation(QStandardPaths::StandardLocation type)
for saving the settings.
Hello, recently I tried to build AntScope2 for Linux as a package (RPM, DEB or so). It generally works, but there is a problem with finding data files. The package installs a binary in /usr/bin but the data files are usually in /usr/share/. Now the program looks for them in /usr/bin/Resources.
I think that using
QStringList QStandardPaths::standardLocations(QStandardPaths::StandardLocation AppDataLocation)
may help finding the resources.
There is also
QString QStandardPaths::writableLocation(QStandardPaths::StandardLocation type)
for saving the settings.