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
chrome-gnome-shell: Fix missing introspection data #87744
Conversation
* format with nixpkgs-fmt * reorder attributes * inline version
It was crashing with: TypeError: gobject `__main__+ChromeGNOMEShell' doesn't support property `application_id' – that is the constructor of parent class Gio.Application does not recognize the kwarg. This is typically caused by missing pygobject overrides but I think ones for Gio are built-in into pygobject. Even weirder, adding just `${gobject-introspection}/lib/girepository-1.0` seems to fix the issue so it might be missing the whole typelib. But then why does not it fail when importing it? from gi.repository import GLib, Gio For now, I am adding the Gio typelib which should been done from the start but more debugging should be done since weirdness like this can bring more bugs. Fixes: NixOS#87740
I'm seeing this issue still - chrome-gnome-shell is still v10.1 and I'm seeing this error in the Chrome terminal output:
|
@wmertens I cannot reproduce, works for me in both Firefox and Chromium. Could you please make sure you do not have |
@jtojnar thanks for following up, I dropped the ball here. The file you mention had a different extension url so I replaced it but that didn't help, even after restarting chrome. I also tried removing it, to no avail. Error remains the same. |
@wmertens I am not concerned about the URL but the |
Ah - it was a regular file for me. What creates it? |
Maybe you did and forgot about it? |
Hmm, unless it was part of instructions at some point, I didn't create it. It also doesn't get recreated, (but the native host still breaks). I'll try removing the extension from Chrome and re-adding |
I think we recommended creating the file in the past (though there were no official docs). |
Motivation for this change
It was crashing with:
– that is the constructor of parent class Gio.Application does not recognize the kwarg.
This is typically caused by missing pygobject overrides but I think ones for Gio are built-in into pygobject.
Even weirder, adding just
${gobject-introspection}/lib/girepository-1.0
seems to fix the issue so it might be missing the whole typelib.But then why does not it fail when importing it?
For now, I am adding the Gio typelib which should been done from the start but more debugging should be done since weirdness like this can bring more bugs.
Fixes: #87740
cc @worldofpeace @glasserc
Things done
sandbox
innix.conf
on non-NixOS linux)nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
./result/bin/
)nix path-info -S
before and after)