'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.
Solution 1:[1]
Set the following command in the IDEA Shell path setting will solve the problem:
/usr/bin/env -- flatpak-spawn --host bash
Solution 2:[2]
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Süli Patrik |
Solution 2 | Egor Klepikov |