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?
You could try modifying the CLion
.desktop
entry to open clion with bash by changing theExec
lineReplace the install location with wherever clion is installed to