Hi,
You really should try to install XyGrib on any Linux flavour using the binary installer.
If there is a need to otherwise build XyGrib and install it, the following logic for the location of the static data files (the entire 'data' folder structure) needs to be observed.
FOR LINUX
If the application settings key 'appDataDir' (in xygrib.ini located in ~/.config )does not point to the location of the data files then XyGrib will search the following locations:
1. Qt will ask the operating system for the user's writable persistent data location indicated by the QT request <QStandardPaths::writableLocation(QStandardPaths::DataLocation) > This for the particular flavour of Linux. This is usually "~/.local/share/openGribs/XyGrib/"
2. If location (1) is not found then Qt will ask the operating system for a non-writable user data location with the Qt request <QStandardPaths::standardLocations(QStandardPaths::DataLocation)>. Depending on the flavour of Linux this might be "/usr/local/share/openGribs/XyGrib/" or it might be "/usr/share/openGribs/XyGrib/"
3. If location (2) is not found then Qt will look for the data folder in the root of the folder where the XyGrib executable resides.
If you don't know what your particular flavour of Linux prefers, I can suggest performing a test installation using the binary installer for Linux and see where it places the files as the installer follows the same logic above and gets the answers from the operating system.
I hope this helps you.
David