1

I have a weird bug that only happens when I start clion from the icon. Clicking on the icon I get: ImportError: No module named catkin.environment_cache in the cmake window. When I start clion from the console like I usually do I don't get this error, I get no error at all. I assume it has something to do with the environment variables that are different depending on the way I start it. I checked jetbrains-clion.desktop and it launches the same binary with the same options I do when starting it from the command line.

Is there a way to set the same environment variables for a .desktop file, as if the command was run from a terminal?

Hakaishin
  • 386

1 Answers1

2

You could try modifying the CLion .desktop entry to open clion with bash by changing the Exec line

Exec=bash -i -c "/INSTALL_LOCATION/clion-2018.2.3/bin/clion.sh" %f

Replace the install location with wherever clion is installed to

Amith KK
  • 13,547