Open Samuel-Lewis opened 12 months ago
I'm able to open .json project files in WSL, but it fails to find tilesets:
I'm pretty sure the problem is related to string escaping. Note that in my image above, the path is \wsl.localhost\...
which is incorrect, it should begin with a double slash: \\wsl.localhost\...
. I think the double slash is being converted to a single slash somewhere which would cause WSL to search C: for the file instead of the mounted WSL drive.
Edit: @deepnight I'm 90% sure ldtk is normalizing path in a way that clobbers UNC paths and doesn't have anything to do with WSL specifically: https://learn.microsoft.com/en-us/dotnet/standard/io/file-path-formats#unc-paths.
I think ldtk would have problems opening any UNC paths, not just WSL-related ones. I vote this issue be renamed to "Support UNC paths" or something.
As a workaround for WSL specifically, you can launch ldtk from WSL itself using the ubuntu appimage.
I found a good workaround for this - map WSL to a letter drive with something like:
See also: https://github.com/microsoft/WSL/issues/3854#issuecomment-631356968
This may even be a good enough workaround to close the issue.
Heya! I'm finding there is a lot of troubles when loading/reading/writing any .ldtk files if they reside within my windows subsystem (WSL). LDtk works wonderfully when running on files located in Windows C drive.
The errors seem to indicate permission issues, but these permission issues seem to be unique to LDtk. Running as Adminstrator does not seem to help.
Environment
LDtk version: 1.4.1, 64bit OS: Windows 11 Home, 21H2
Steps to Reproduce
Creating
\\wsl.localhost\Ubuntu\home\user\my-project\world.ldtk
Expect: FIle to be created and project to open Actual: LDtk fails to create, showing error about lack of permissions
Opening
\\wsl.localhost\Ubuntu\home\user\my-project\world.ldtk
world.ldtk
Expect: File to open in LDTK Actual: LDTK opens, and fails to find project