How to get the path where Intellij IDEA is installed?

Hello,

for a plugin I want to set the param "-Didea.launcher.bin.path" to the actuall used Intellij IDEA install directory. But I couldn't figure out how to get it programatically.
The value is not set for some reason & I need it to add it as VM option to some Unit Test Execution.

I stumbeld over link and ApplicationInfo.getInstance().getFullVersion() which helps to get the version. But it would be great to get the full path to the install directory...
I am glad for any kind of help! Thank you!

Philipp

2 comments
Comment actions Permalink

PathManager.getHomePath()

0
Comment actions Permalink

Great! Thank you!

0

Please sign in to leave a comment.