I am making use the the AppData folder by creating images there and shelling out to Windows (with Process.Start( path-to-image )). This causes the built in photo viewer/editor to start up with the image in question. When I look at the process created for this, it shows the following as the executable:
Microsoft.Windows.Photos_2018.18041.15530.0_x64__8wekyb3d8bbwe
Now, when I edit the photo in the app and try to save it over the existing image file, the photo app says:
Opps! We couldn't save that one.
However, if I save a copy right next to it with a different name, all is good.
I've made sure that the permissions allow writing on the file, etc.
Note that if I use the Paint 3D app to edit the image, I can overwrite the original file.
My question is: Is there something I am doing wrong, or is there a better place I should be using for app specific data where I want my user to be able to modify the image with the photo app.
Update:
Even when I try to start the "ms-paint:" app (Paint 3D), I can't seen to be able to pass an argument to it.
I am left with starting the "basic" paint app which can't save the image, or starting the paint 3d app which can't take an argument.