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.