3

I use JetBrains Toolbox to manage my JetBrains apps.

Whenever a new version of IntelliJ IDEA is installed it gets a new directory under ~/.local/share/JetBrains/Toolbox/apps/IDEA-U folder.

These directories are named ch-0, ch-1 aso. in order to have the current and previous version installed. This makes switching back to the previous version simple if something doesn't work with the new version.

On the other hand, I would like to open a file or project via command line. So, I need a link to the current IntelliJ IDEA executable. This link breaks after every update.

Is there a hidden feature of the JetBrains Toolbox or does anybody have an other idea to archive a permanent link to the current version?

LazyOne
  • 158,824
  • 45
  • 388
  • 391
Peter
  • 4,752
  • 2
  • 20
  • 32
  • 1
    *"So, I need a link to the current IntelliJ IDEA executable"* 1) Each IDE should have own command line launcher (e.g. `webstorm` for WebStorm, `phpstorm` or maybe `pstorm` for PhpStorm, `idea` for IntelliJ IDEA and so on). Check them in action + see if you can regenerate them from Toolbox app (should be) so they point to the latest version. 2) What if you select "Keep only the latest version" option (to keep only 1 version installed)? – LazyOne Nov 09 '19 at 10:46
  • I did not have such a launcher, bc the option could be disabled in JetBrains Toolbox. I wasn't aware of such an option.. – Peter Nov 09 '19 at 11:23
  • 1
    This helped me, https://timdeschryver.dev/blog/enable-shell-scripts-for-the-jetbrains-toolbox-app – timdeschryver Jul 01 '22 at 05:19

1 Answers1

4

Jetbrains Toolbox offers an option to generate shell scripts. That option was disabled.

Simply enable Generate shell scripts and choose a location where a link to that script should be created. After the option was enabled an a shell script location was selected, the script and link was created immediately.

The screenshot should make things really clear:

enter image description here

Peter
  • 4,752
  • 2
  • 20
  • 32