Jump to content

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

Link to comment
Share on other sites

I put out a hotfix for this: https://forums.getpaint.net/topic/116563-problem-after-saving-a-picture/?do=findComment&comment=572295 

 

 

Please let me know if it works for you. I plan on releasing a proper 4.2.13 update soon.

The Paint.NET Blog: https://blog.getpaint.net/

Donations are always appreciated! https://www.getpaint.net/donate.html

forumSig_bmwE60.jpg

Link to comment
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.

×
×
  • Create New...