ags icon indicating copy to clipboard operation
ags copied to clipboard

nix `lib.bundle` with gtk4 does not work

Open Alxandr opened this issue 11 months ago • 0 comments

I scaffolded up a new project using ags and then built it using the following:

          alxandr-bar = inputs.ags.lib.bundle {
            inherit pkgs;
            src = ./packages/bar/src;
            name = "alxandr-bar";
            entry = "app.ts";
            gtk4 = true;
          };

When I run it, I get the following error:

(gjs:1032121): GLib-GObject-CRITICAL **: 22:07:15.880: cannot register existing type 'GtkIMContext'

(gjs:1032121): GLib-GObject-CRITICAL **: 22:07:15.880: cannot add private field to invalid (non-instantiatable) type '<invalid>'

(gjs:1032121): GLib-CRITICAL **: 22:07:15.880: g_once_init_leave_pointer: assertion 'result != 0' failed

(gjs:1032121): GLib-GObject-CRITICAL **: 22:07:15.880: g_type_register_dynamic: assertion 'parent_type > 0' failed

Turning gtk4 off makes bar start (though causes other issues, cause gtk4 is not loaded). Running the bar using ags run --gtk4 app.ts works.

Alxandr avatar Jan 28 '25 21:01 Alxandr