Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nix lib.bundle with gtk4 does not work #678

Open
Alxandr opened this issue Jan 28, 2025 · 0 comments
Open

nix lib.bundle with gtk4 does not work #678

Alxandr opened this issue Jan 28, 2025 · 0 comments

Comments

@Alxandr
Copy link

Alxandr commented Jan 28, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant