rigexpert / AntScope2

MIT License
40 stars 18 forks source link

AntScope data location #4

Open wkazubski opened 5 years ago

wkazubski commented 5 years ago

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.