Make sure you run XQuartz if you are using a mac and that DISPLAY is set on the host machine.
$ export DISPLAY=:0
And SSH to the target machine with forwarding enabled (ssh -Y [host]
)
Inspect the environment by running:
$ flatpak run --filesystem=~/.xauth com.jetbrains.IntelliJ-IDEA-Community --command=sh -c "export DISPLAY=$DISPLAY"