When I launch IntelliJ from my Favorite icon and then launch a Maven Run Configuration, system environment variables (those exported in ~/.bashrc
) are not recognized inside IntelliJ. If I run the same idea.sh
that is run from the Favorites icon, then they are defined.
Related:
- Question on Stack Overflow, but this issue is more about Ubuntu passing of environment than IntelliJ specifics.
- Question on Ask Ubuntu about Eclipse, but that recommends a shell script, which is already the case here.
Contents of the desktop
file:
[Desktop Entry]
Version=1.0
Type=Application
Name=IntelliJ IDEA Ultimate Edition
Icon=/hdd/executables/idea-IU-191.6707.61/bin/idea.svg
Exec="/hdd/executables/idea-IU-191.6707.61/bin/idea.sh" %f
Comment=Capable and Ergonomic IDE for JVM
Categories=Development;IDE;
Terminal=false
StartupWMClass=jetbrains-idea