If you want to use emacsclient with the flatpak use “flatpak run –command=emacsclient org.gnu.emacs” or make that an alias in your shell profile.