http://bugs.winehq.org/show_bug.cgi?id=28020
Summary: winepath -w should also look into user folders (Desktop, Music, etc), not just dosdevices Product: Wine Version: unspecified Platform: x86-64 OS/Version: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: programs AssignedTo: wine-bugs@winehq.org ReportedBy: wine@rodrigosilva.com
Currently, winepath -w (seems to) only search for symlinks in $WINEPREFIX/dosdevices to map a given native path to a windows one. But it should also look for user folder's symlinks (like Desktop, My Music, My Pyctures, etc)
This is specially helpful if a given prefix has removed the "catch all" Z: => / mapping. In that case, winepath is mapping my "~/Desktop" to "\?\unix...", but it could be "smarter" and map it to "C:\users\rodrigo\Desktop" instead.
Last but not least, a related limitation is the lack of winepath -u to understand windows env variables, like %USERPROFILE%. That usually points to C:\users$USER , but since that can be changed in registry, a "windows enviroment-aware winepath -u" would be truly useful.