Pinta icon indicating copy to clipboard operation
Pinta copied to clipboard

Can't open file using open or dragging and dropping

Open charlie59876 opened this issue 2 months ago • 4 comments

Description I can't open an existing image using either dragging and dropping from thunar (i get the error no such file or directory), nor from using the open button (the open button doesn't do anything, and doesn't open my file picker)

To Reproduce Try to open a file or drag and drop (another post mentioned it might specifically be files from a mounted drive, but that hasn't been resolved either)

Version Pinta 3.0.3 Archcraft / arch kernal 6.16.10-arch1-1 Installed via flatpak

charlie59876 avatar Oct 07 '25 21:10 charlie59876

If the open button isn't working either, perhaps you're missing the XDG desktop portals package and/or the appropriate backend? e.g. https://wiki.archlinux.org/title/XDG_Desktop_Portal

Are there any output logs if you launch from the terminal?

cameronwhite avatar Oct 09 '25 12:10 cameronwhite

i get this error

(pinta:2): Gtk-WARNING **: 14:39:36.398: Trying to measure GtkLabel 0x556addb90c40 for width of 158, but it needs at least 634

spammed in console, with this at the end

(pinta:2): Gtk-WARNING **: 14:39:36.401: Unable to retrieve the Flatpak portal version: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Flatpak was not provided by any .service files

and this at the beginning

GLib.GException: Error when getting information for file “/root/%F”: No such file or directory at Gio.FileHelper.QueryInfo(String attributes, FileQueryInfoFlags flags, Cancellable cancellable) at Pinta.Core.GioExtensions.GetDisplayName(File file) at Pinta.Core.WorkspaceManager.OpenFile(File file, Window parent)

Also now i seem to be able to drag and drop files fine but i couldn't before? i've restarted since then so not sure if that's why, i already had xdg-desktop-portal and reinstalled it via yay, maybe that fixed the drag and drop but the open button still doesn't do anything, most applications seem to open the thunar file selection screen fine when i use open

charlie59876 avatar Oct 11 '25 13:10 charlie59876

I have a similar problem, but the error is different

System.InvalidCastException: Unable to cast object of type 'GObject.Object' to type 'GObject.Value'.
   at GObject.Value.Extract[T]()
   at GObject.SignalArgs.Extract[T](Value value)
   at Gtk.DropTarget.DropSignalArgs.get_Value()
   at Pinta.MainWindow.HandleDrop(DropTarget sender, DropSignalArgs args) in /build/source/Pinta/MainWindow.cs:line 598
   at GObject.ReturningSignal`3.<>c__DisplayClass11_0.<Connect>b__0(Value returnValue, Value[] parameters)
   at GObject.Closure.InternalCallback(IntPtr closure, IntPtr returnValuePtr, UInt32 nParamValues, IntPtr paramValuesData, IntPtr invocationHint, IntPtr userData)

console:

Image

error dialog

Image

sadan4 avatar Oct 16 '25 04:10 sadan4

(pinta:2): Gtk-WARNING **: 14:39:36.401: Unable to retrieve the Flatpak portal version: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.portal.Flatpak was not provided by any .service files

and this at the beginning

GLib.GException: Error when getting information for file “/root/%F”: No such file or directory at Gio.FileHelper.QueryInfo(String attributes, FileQueryInfoFlags flags, Cancellable cancellable) at Pinta.Core.GioExtensions.GetDisplayName(File file) at Pinta.Core.WorkspaceManager.OpenFile(File file, Window parent)

I think the first error about portals is very likely the issue. I don't know enough about flatpak to suggest how to fix it, though, so searching on the Arch wiki / forums might be a good next step.

I have a similar problem, but the error is different

Could you file a separate bug report for that please? Since the error is different it's very likely a separate issue

cameronwhite avatar Nov 06 '25 05:11 cameronwhite