intellij-ideaterminalflatpak

IntelliJ IDEA Terminal not see commands


I'm using Fedora 35 Linux and I installed IntelliJ IDEA via flatpak, and when I try to use the docker command in the IDEA's terminal window, it gives me the following error message:

bash-5.1$ docker
bash: docker: command not found

In a normal terminal window I can use the docker command fine with my user.

I installed the fish terminal too for my user but the IDEA not see the fish command too.

The Terminal config in the IDEA looks like this: enter image description here


Solution

  • Set the following command in the IDEA Shell path setting will solve the problem:

    /usr/bin/env -- flatpak-spawn --host bash
    

    enter image description here