I recently noticed that Pinta can't open URIs. For example, pinta 'file:///home/user/Pictures/1.jpg throws the following error:
System.IO.DirectoryNotFoundException: Could not find a part of the path "/home/user/file:///home/user/Pictures/1.jpg". at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x001cf] in <8f2c484307284b51944a1a13a14c0266>:0 at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean isAsync, System.Boolean anonymous) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess) at Pinta.Core.GdkPixbufFormat.Import (System.String fileName, Gtk.Window parent) [0x00001] in <9b310142bf6a435981374bac46286a4d>:0 at Pinta.Core.WorkspaceManager.OpenFile (System.String file, Gtk.Window parent) [0x0003d] in <9b310142bf6a435981374bac46286a4d>:0
As far as I know, most program are able to open URIs (with the file URI schema). For more context on why this feature is needed, please read https://communiroo.com/PintaProject/pinta/questions/436/pinta-cant-open-uris-pinta-pinta-file-path-to-image.
Thanks!
Fixed by https:/ /github. com/PintaProjec t/Pinta/ commit/ e0c827e5368e356 fa09a0c6419cd2b fe36a6da80