Skip to content

WSL explorer.exe . open a error path in windows explorer.exe #13247

Open
@ZOMLI

Description

@ZOMLI

Windows Version

Microsoft Windows [版本 10.0.19045.6093]

WSL Version

2.6.0.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

6.6.87.2

Distro Version

Ubuntu 24.04

Other Software

No response

Repro Steps

When I run "explorer.exe ." in the "~" directory, explorer.exe will open the "C:\Users<username>" folder instead of the path "\wsl.localhost\Ubuntu-24.04\home\ubuntu".
However, if I run explorer.exe . in the "/mnt/d/test" directory, explorer.exe will open the correct path.

ps: The operation of code . behavior is correct.

otherwise,
When I entered "\wsl.localhost\Ubuntu-24.04" in the address bar, explorer.exe reported that the path could not be found: "Windows找不到\wsl.localhost\Ubuntu-24.04"。请检查拼写并重试。"

However, I can access it in the manner shown in the figure, and the address displayed is still "\wsl.localhost\Ubuntu-24.04"

Image

Expected Behavior

Run "explorer.exe ." in the "~" directory, explorer.exe will open the "\wsl.localhost\Ubuntu-24.04\home\ubuntu".

Actual Behavior

Run "explorer.exe ." in the "~" directory, explorer.exe will open the "C:\Users<username>"

Diagnostic Logs

~ dmesg | grep 9p
[    0.181270] 9p: Installing v9fs 9p2000 file system support
[    0.321901] 9pnet: Installing 9P2000 support
➜  ~ cat /etc/wsl.conf
[boot]
systemd=true

[automount]
enabled = true

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions