Drag and drop pictures sometimes causes a GLib exception
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Pinta |
Triaged
|
Undecided
|
Unassigned |
Bug Description
At the recent Flatpak version of the Pinta (and at older versions too), I found the weird error: on almost every my attempt to drag a picture from the directory into the Pinta, leads an error message, however, picture gets opened normally after that. I use Linux Mint 21.1 (based on Ubuntu 22.04) and the file manager Nemo version 5.6.4.
My actions:
- Open a picture at Pinta via context menu (Open by -> Pinta).
- Making some edits on it (drawing lines with arrows of red colour).
- Saving it by Ctrl+S or by hitting the "Save" button.
- Closing it via Ctrl+W.
- Dragging another picture from the file manager into Pinta.
- Error gets popped up.
- Image gets opened in any way after error message got been closed.
EDIT: Nope, at the latest Pinta the image does NOT gets open when I drag and drop it. It gets open when I use the File -> Open menu. The drag and drop doesn't works at all now. At the in-repository version of Pinta (it's VERY old), image gets opened normally even error pops up. At Flatpak version, it fails to open.
The error message itself:
```
GLib.GException: Ошибка при получении информации о файле «/home/
at GLib.FileAdapte
at Pinta.Core.
at Pinta.Core.
```
Translation: "Error of getting information about the file '...': No such file or directory".
Changed in pinta: | |
milestone: | 2.2 → 2.3 |
For "Nope, at the latest Pinta the image does NOT gets open", do you mean the latest flatpak build , or building Pinta from the 'master' branch?
Pinta 2.1.1 had a fix for bug 2003384 which affected drag and drop and sounds like the original issue you described with an error appearing but the file still opening successfully
The second error you described sounds maybe like a sandboxing / permissions issue where the file path can't be accessed. This might be something that's only fixed with GTK4 based on reading https:/ /github. com/flatpak/ xdg-desktop- portal/ issues/ 99, but could be worked around by granting flatpak permissions to read the appropriate folders in the home directory?