mariadb-connector-c is not part of the flatpak runtime, and therefore is built in /app as a dependency of flatpaks which require it. Therefore, my.cnf must respect %_sysconfdir rather than use /etc.