4

I downloaded a Jetbrains Toolbox app following this instructions: https://www.jetbrains.com/help/idea/installation-guide.html#toolbox

In short, I did this:

Downloaded tar.gz file

Ran this: sudo tar -xzf jetbrains-toolbox-1.17.7391.tar.gz -C /opt

And after cd into /opt/... folder to execute, I did this: ./jetbrains-toolbox

Windows 10 Insider dev build for WSLg allows Ubuntu Apps inside WSLg to have an entry in Start Menu of normal windows. So If I installed sudo apt install firefox in WSL, Firefox icon will show up in Start menu of normal Windows.

How to do the same for executable script like ./jetbrains-toolbox?

dsf
  • 181
  • 1
  • 5

2 Answers2

6

The way to add WSL programs/scripts to your windows start menu is to add an entry to the /usr/share/applications directory in your WSL install.

So in your example, if we create the file /usr/share/applications/toolbox.desktop, and add this content to the file:

[Desktop Entry]
Type=Application
Name=Jetbrains Toolbox
Exec=/opt/jetbrains-toolbox

When you save the file, you'll have a new windows entry called Jetbrains Toolbox (Ubuntu), assuming your WSL installation is Ubuntu.

0

One option is to create the shortcut manually. To do so, create a new entry shortcut in

%appdata%\Microsoft\Windows\Start Menu\Programs\[WSL_NAME]

were [WSL_NAME] is the name of the target wsl installation (e.g. Ubuntu-20.04). Set Start in to C:\WINDOWS\system32, enter the desired name, select an appropriate icon and enter

C:\Windows\System32\wslg.exe ~ -d Ubuntu-20.04 [EXECUTABLE_PATH]

as the target. To create a shortcut to Pycharm 2021.2.1 installed in /opt for example, the [EXECUTABLE_PATH] would be /opt/pycharm-2021.2.1/bin/pycharm.sh.

user22496
  • 101