tuberry / ibus-tweaker

Tweaker of IBus for theme, font, input mode and clipboard history.
GNU General Public License v3.0
40 stars 6 forks source link

Error in Gnome 46 , ibus-tweaker verion 45 #27

Closed wagafo closed 5 months ago

wagafo commented 6 months ago

Ubuntu 24.04 Gnome 46 ibus-tweaker version 45

The extension cannot be enabled, it gives the following error:

` Error: Requiring Json, version none: Typelib file for namespace 'Json' (any version) not found

Stack trace: require@resource:///org/gnome/gjs/modules/esm/gi.js:16:28 @gi://Json/:3:25 _init/GLib.MainLoop.prototype.runAsync/</<@resource:///org/gnome/gjs/modules/core/overrides/GLib.js:266:34 `

wagafo commented 6 months ago

Solved by installing the library:

sudo apt install libjson-c-dev

tuberry commented 6 months ago

~I'm fairly sure it should be libjson-glib, one of the gnome-shell dependencies so that this problem shouldn't be happening.~

Maybe you can report it to Ubuntu. :)

Edit: gir1.2-json-1.0 should be installed in this case, since finer package level granularity of Debian/Ubuntu.

tuberry commented 5 months ago

The dependency on json-glib was dropped in the latest commit, you can try to install the extension from Github and uninstall the JSON package you installed then re-login to see if it works. :)