have you changed the user name of your system after installing opencpn with flatpak?
Are you in a headless system?
Try this:
sudo flatpak run org.opencpn.OpenCPN
or try to uninstall and reinstall.
Are you in a headless system?
Try this:
sudo flatpak run org.opencpn.OpenCPN
or try to uninstall and reinstall.