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"
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
$bash-5.1$ pwd
/app/idea-IC/bin
Finally, run IntelliJ:
$ flatpak run --share=network --command=bash com.jetbrains.IntelliJ-IDEA-Community -c "DISPLAY=$DISPLAY /app/idea-IC/bin/idea.sh"