# wslpath command does not return the windows path for home directory #3146

Closed
opened this Issue May 4, 2018 · 6 comments

Projects
None yet
5 participants

### mmktomato commented May 4, 2018

$wslpath -w ~ wslpath: /path/to/home: Result not representable  Is this intended behavior? I expect following result: $ wslpath -w ~
C:\Users\mkt\AppData\Local\Packages\CanonicalGroupLimited.UbuntuonWindows_79rhkp1fndgsc\LocalState\rootfs\path\to\home


### env

>ver

Microsoft Windows [Version 10.0.17134.1]


### 0xbadfca11 commented May 5, 2018

 WSL team says don't modify Linux files from Windows applications. So I think that wslpath does not provide path conversion except /mnt for Windows applications interoperability. If provided, will helps modify Linux files from Windows applications.

### mmktomato commented May 9, 2018

 Ah~~~ I forgot the prerequisite. I want to run like: $AutoHotkey64.exe$(wslpath -w ~/dotfiles/ImDisable.ahk)  This is completely read only. I hope wslpath resolves paths other than /mnt.
Member

### benhillis commented May 10, 2018

 This is by-design for now. Since modifying files inside your Linux file system can cause issues, we do not want to make it easier for users to shoot themselves in the foot.

### mmktomato commented May 11, 2018

 I see. I understand my demand is potentially dangerous.

### espoelstra commented Sep 12, 2018

 You may be able to work around this using https://brianketelsen.com/going-overboard-with-wsl-metadata/ if you read the post and pay special attention to the "Update" section at the end.

Closed

### nic-hartley commented Nov 8, 2018

 @benhillis That's what --force and a warning is for. rm --no-preserve-root -rf / doesn't say Result not representable. Sometimes you want to do "stupid" things.