Reputation: 125
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:
Upvotes: 3
Views: 8501
Reputation: 51
I gave up with flatpak and installed via snap: https://snapcraft.io/intellij-idea-ultimate
Terminal works as expected.
Upvotes: 1
Reputation: 125
Set the following command in the IDEA Shell path setting will solve the problem:
/usr/bin/env -- flatpak-spawn --host bash
Upvotes: 3
Reputation: 5879
I installed IntelliJ IDEA via flatpak
IntelliJ IDEA's terminal can't see docker executables because the environment running the IDEA is a sandbox and there is no docker or other programs. You could use ls /usr/bin/docker
to check it.
You can install a non-flatpack/non-snap version if you want to use those programs: https://www.jetbrains.com/idea/download/other.html
Upvotes: 1