Gnome-shell-extension-gsconnect: Extension doesn't work after updating gjs to 1.68.0

Created on 23 Mar 2021  路  4Comments  路  Source: GSConnect/gnome-shell-extension-gsconnect

After updating gjs to 1.68.0 the extension doesn't work. Device list is disappeared (stuck in a searching) and cannot connect to phone.
Downgrade back to 1.66.2 is resolved the problem.
Event log:

JS ERROR: TypeError: this._instance is undefined
_init@/[email protected]/service/utils/dbus.js:69:20
_exportDevice@/[email protected]/service/manager.js:295:26
_loadDevices@/[email protected]/service/manager.js:266:18
start@/[email protected]/service/manager.js:453:14
vfunc_startup@/[email protected]/service/daemon.js:258:22
vfunc_handle_local_options@/[email protected]/service/daemon.js:664:18
@/[email protected]/service/daemon.js:727:17

Maybe this gjs PR broke something: https://gitlab.gnome.org/GNOME/gjs/-/merge_requests/591

Most helpful comment

I'll try to get that fixed this weekend.

All 4 comments

I think every one who uses GNOME with up to date distros like Arch has the exact same issue , kde connect works just fine so it's not a firewall problem

I'll try to get that fixed this weekend.

Indeed that PR seems to be related. If I remove the CONSTRUCT_ONLY flag on line 46 of dbus.js it starts working again.

@andyholmes did you have a specific reason to add that flag?

Probably anyways the correct fix would be to figure out the naming clash or whatever in detail, but I think the priority should be to get a fix out, so if there's no pressing reason to have that parameter be CONSTRUCT_ONLY I think that's the fix I'll go with.

Probably anyways the correct fix would be to figure out the naming clash or whatever in detail, but I think the priority should be to get a fix out, so if there's no pressing reason to have that parameter be CONSTRUCT_ONLY I think that's the fix I'll go with.

Well it can only be set at construction, but we're not exactly publishing a library here so probably doesn't matter :)

It might be because I named the variable _instance while the property name is g-instance, thus maybe the variable should have been named _g_instance?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

amivaleo picture amivaleo  路  4Comments

didierga picture didierga  路  5Comments

danieldeng2 picture danieldeng2  路  4Comments

AngusLogan02 picture AngusLogan02  路  4Comments

siegfriedhuber picture siegfriedhuber  路  6Comments