Pinta can't open URIs (`pinta 'file:///path/to/image'`)

Bug #1908806 reported by Robert Smith on 2020-12-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Pinta
Undecided
Unassigned

Bug Description

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!

Changed in pinta:
milestone: none → 1.8
status: New → Triaged
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers