Sign in to follow this  
MewesK

Saving file on WSL2 mount

Recommended Posts

HI guys,

 

I'm using the new WSL2 (with Ubuntu 20). Opening, and "Saving as" from/to the WSL mount (\\wsl$\...) works perfectly fine with paint.net, but saving produces always this error:

 

Application version: paint.net 4.2.12

System.ComponentModel.Win32Exception (0x80004005): ReplaceFileW() returned FALSE (50, ERROR_NOT_SUPPORTED)
   at PaintDotNet.SystemLayer.NativeUtilities.ThrowOnWin32Error(String message, Int32 lastWin32Error, Boolean alwaysThrow) in D:\src\pdn\src\SystemLayer\NativeUtilities.cs:line 89
   at PaintDotNet.SystemLayer.FileSystem.ReplaceFile(String replacedFileName, String replacementFileName, String backupFileName) in D:\src\pdn\src\SystemLayer\FileSystem.cs:line 48
   at PaintDotNet.IO.SaveTransaction.Commit() in D:\src\pdn\src\PaintDotNet\IO\SaveTransaction.cs:line 287
   at PaintDotNet.Controls.DocumentWorkspace.<>c__DisplayClass246_1.<DoSaveImpl>b__6() in D:\src\pdn\src\PaintDotNet\Controls\DocumentWorkspace.cs:line 2794
   at PaintDotNet.Functional.Func.Try(Action f) in D:\src\pdn\src\Base\Functional\Func.cs:line 174

 

I guess ReplaceFileW is not available on WSL2 mounts. Not a show stopper but rather annoying^^

 

Thanks for the awesome application!

 

-Mewes

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this