openmw.cfg path.
openmw.cfg
is installed in a different path if OpenMW is installed using flatpak
. That path would be: ~/.var/app/org.openmw.OpenMW/config/openmw
. I believe an easy solution would be to add a new possible parameter to the config file. Or it can also span through the possible locations; There are 3 possible ways to install OpenMW: Package Manager, flatpak, and source build(shouldn't be taken into account since it's too wild).