1
vote

First of all, thank you for your work on Pinta. I have a simple question/possible bug. I was modifying a small C program that relies on left-click/right-click events to open a file. I want to use Pinta as my default drawing editor to open such files, however, the file is referenced as a URI (instead of a simple absolute path) and Pinta is not opening URIs. For example, pinta 'file:///home/user/Pictures/1.jpg is throwing 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

Is this a bug? As far as I can tell, pretty much every program should be able to open URIs (with the file URI schema)

rs3
asked 3 years ago
rs3
None