Skip to content

nix lib.bundle with gtk4 does not work #678

Open
Aylur/astal
#314
@Alxandr

Description

@Alxandr

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions