[go: up one dir, main page]

Drag-and-drop into Inkscape not working in Snap package

Summary:

I'm trying to import an image into a brand new inkscape document by dragging it from the OS file explorer and dropping it to the viewport.
When I do that, I get a popup saying

Failed to load the requested file /path/to/the/image.jpeg

The terminal shows a slightly more explicit error message:

Pixbuf::create_from_file: failed to get contents: /path/to/the/image.jpeg
GdkPixbuf loader failed

I have tried with multiple images and formats (png & jpeg), the problem is the same. However, importing the same image via File>Import works normally

Note: This looks similar to inbox#3912 but I believe this is not the same issue: In that case, nothing happens when the image is dropped, while here an error message is shown.

Steps to reproduce:

  • open Inkscape
    • brand new install, from snap store
    • reset preferences
    • via the terminal, to get the detailed logs)
  • create a new document
  • drag and drop an image from the file explorer into the workspace

What happened?

An error popup is shown and the image is not imported:

Failed to load the requested file /path/to/the/image.jpeg

What should have happened?

The image should be imported

Version info

Inkscape 1.2 (56b05e47, 2022-06-09, custom)

GLib version:     2.72.1
GTK version:      3.24.33
glibmm version:   2.66.2
gtkmm version:    3.24.5
libxml2 version:  2.9.13
libxslt version:  1.1.34
Cairo version:    1.16.0
Pango version:    1.50.6
HarfBuzz version: 2.7.4

OS version:       Ubuntu Core 22

Full logs

> inkscape
Gtk-Message: 15:33:33.942: Failed to load module "xapp-gtk3-module"
Gtk-Message: 15:33:33.979: Failed to load module "canberra-gtk-module"
Gtk-Message: 15:33:33.981: Failed to load module "canberra-gtk-module"

(org.inkscape.Inkscape:805845): IBUS-WARNING **: 15:33:34.483: Failed to mkdir /home/MY_UNAME/snap/inkscape/10417/.config/ibus/bus: Not a directory

(org.inkscape.Inkscape:805845): Gtk-CRITICAL **: 15:33:36.407: gtk_box_gadget_distribute: assertion 'size >= 0' failed in gtkmm__GtkNotebook

(org.inkscape.Inkscape:805845): Gtk-CRITICAL **: 15:33:36.407: gtk_box_gadget_distribute: assertion 'size >= 0' failed in gtkmm__GtkNotebook
Pixbuf::create_from_file: failed to get contents: /path/to/the/image.jpeg
GdkPixbuf loader failed