Launching Explorer from WSL

start . used to launch the explorer window from cmd.

Performing the same thing from wsl, I get

$ start. start: cannot connect to the system bus: could not connect to socket / var / run / dbus / system_bus_socket: there is no such file or directory

Is there an easy way to fix this?

+5
source share
1 answer

In Developer Update, you can invoke Windows executables from the WSL if you add an extension file. You can open the current folder as follows.

explorer.exe .

But this will only work if you are in the Windows folder (/ mnt / *), otherwise it will open the c: \ windows \ system32 folder by default.

If you still need a start, you can create an alias

alias start='cmd.exe /c start'

then start . will work too.

+5
source

Source: https://habr.com/ru/post/1268330/


All Articles