Thursday, April 14, 2022

[SOLVED] Where is the executable file of Kali Linux on Windows?

Issue

I would like to add a shortcut in Windows10 using DisplayFusion to
launch WSL Kali Linux and directly open the file manager href="https://en.wikipedia.org/wiki/Ranger_%28file_manager%29" rel="nofollow noreferrer">ranger.

DisplayFusionSettings

Example: This works quite well for launching a new firefox tab:

  • Function Name: Launch_Firefox
  • Key Combination: Ctrl+Alt+F
  • Application: C:\Program Files\Mozilla Firefox\firefox.exe
  • Application Parameters: -new-tab "https://www.google.com"

KaliLinux launcher:
DisplayFusionAddFunction

Unfortunately I cant figure out where the executable for Kali Linux is stored.
I know that the Windows-App-Store storage-location of the WSL is
C:\Users\[USER]\AppData\Local\Packages\KaliLinux.54290C8133FEE_ey8k8hqnwqnmg\
Neither in this path nor in any subdirectory is an executable to find.
Google only shows me results for where the Linux root directory of the WSL is located:
C:\Users\[USER]\AppData\Local\Packages\KaliLinux.54290C8133FEE_ey8k8hqnwqnmg\LocalState\rootfs

Q: Where ist the executable of the WSL (Windows Subsystem for Linux) of Kali located?


Solution

Found the solution!

Step 1: Find the executable:

C:\Users\[USER]>where wsl
C:\Windows\System32\wsl.exe

Step 2: Setting up launcher: enter image description here

Thanks to Ken Y-N for the documentation!


For interested parties: Have a look on "How to launch Windows apps from Ranger WSL?".



Answered By - PatrickSteiner
Answer Checked By - Clifford M. (WPSolving Volunteer)