Jérémy Korwin-Zmijowski <jer...@korwin-zmijowski.fr> writes:

> I want to build a GUI for Gnome (using guile-g-golf (and gtk)).
>
> When under Gnome my small "Hello World" (from the manual example
> script) window shows up.
>
> When under KDE (Plasma) nothing shows up but errors in the terminal :
>
>    $ guix shell guile gtk guile-g-golf -- ./hello-world
>    (guile:10978): GLib-GObject-WARNING **: 12:19:06.388: cannot
>    register existing type 'GdkPixbuf'
>    (guile:10978): GLib-GObject-CRITICAL **: 12:19:06.388:
>    g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE
>    (instance_type)' failed
>    (guile:10978): GLib-GObject-CRITICAL **: 12:19:06.388:
>    g_type_add_interface_static: assertion 'G_TYPE_IS_INSTANTIATABLE
>    (instance_type)' failed
>    (guile:10978): GLib-CRITICAL **: 12:19:06.388: g_once_init_leave:
>    assertion 'result != 0' failed

When using g-golf make sure to disable grafts:

  guix shell --pure --no-grafts \
    guile guile-g-golf gtk@4

The same problem was found in guile-gi first:

  https://github.com/spk121/guile-gi/issues/96

-- 
Ricardo

Reply via email to