Süli Patrik
Süli Patrik

Reputation: 125

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

Upvotes: 3

Views: 8501

Answers (3)

Ian Wood
Ian Wood

Reputation: 51

I gave up with flatpak and installed via snap: https://snapcraft.io/intellij-idea-ultimate

Terminal works as expected.

Upvotes: 1

Süli Patrik
Süli Patrik

Reputation: 125

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

Upvotes: 3

Egor Klepikov
Egor Klepikov

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

Related Questions