You are not logged in.

#1 2015-12-15 02:18:02

vanitas
Member
From: Guangzhou, China
Registered: 2014-05-31
Posts: 16

[Solved]No such key Gtk/IMModule in schema as specified in override

When updating the system, I sometimes get this message:

No such key 'Gtk/IMModule' in schema 'org.gnome.settings-daemon.plugins.xsettings' as specified in override file '/usr/share/glib-2.0/schemas/50_sogoupinyin.gschema.override'; ignoring override for this key.

/usr/share/glib-2.0/schemas/50_sogoupinyin.gschema.override is created by fcitx-sogoupinyin, and its content is

But Why it complains that "No such key 'Gtk/IMModule'"?

[org.gnome.settings-daemon.plugins.keyboard]
active=false
[org.gnome.settings-daemon.plugins.xsettings]
Gtk/IMModule=fcitx
[com.canonical.indicator.keyboard]
visible=false

The error message is confused since the key should exist (I use gsettings set org.gnome.settings-daemon.plugins.xsettings overrides "{'Gtk/IMModule':<'fcitx'>}" in ~/.xprofile to make fcitx work, as recommended in Fcitx Wiki).
But Why it complains that "No such key 'Gtk/IMModule'"?

Any idea why this happens and how to get rid of it?

Running sudo glib-compile-schemas /usr/share/glib-2.0/schemas/ produces the same error message, and can be used to check whether the problem exists.

Last edited by vanitas (2016-06-11 17:35:09)

Offline

#2 2015-12-15 02:26:11

vanitas
Member
From: Guangzhou, China
Registered: 2014-05-31
Posts: 16

Re: [Solved]No such key Gtk/IMModule in schema as specified in override

Strangely, running gsettings list-keys org.gnome.settings-daemon.plugins.xsettings doesn't show "Gtk/IMModule".

Offline

#3 2016-06-11 12:49:53

TorosFanny
Member
Registered: 2016-06-11
Posts: 1

Re: [Solved]No such key Gtk/IMModule in schema as specified in override

look at /usr/share/glib-2.0/schemas/50_sogoupinyin.gschema.override. It should be like this

[org.gnome.settings-daemon.plugins.keyboard]
active=false
[org.gnome.settings-daemon.plugins.xsettings]
overrides={'Gtk/IMModule':<'fcitx'>}
[com.canonical.indicator.keyboard]
visible=false

But it is

[org.gnome.settings-daemon.plugins.keyboard]
active=false
[org.gnome.settings-daemon.plugins.xsettings]
Gtk/IMModule=fcitx
[com.canonical.indicator.keyboard]
visible=false

Offline

#4 2016-06-11 17:32:15

vanitas
Member
From: Guangzhou, China
Registered: 2014-05-31
Posts: 16

Re: [Solved]No such key Gtk/IMModule in schema as specified in override

TorosFanny wrote:

look at /usr/share/glib-2.0/schemas/50_sogoupinyin.gschema.override. It should be like this

[org.gnome.settings-daemon.plugins.keyboard]
active=false
[org.gnome.settings-daemon.plugins.xsettings]
overrides={'Gtk/IMModule':<'fcitx'>}
[com.canonical.indicator.keyboard]
visible=false

But it is

[org.gnome.settings-daemon.plugins.keyboard]
active=false
[org.gnome.settings-daemon.plugins.xsettings]
Gtk/IMModule=fcitx
[com.canonical.indicator.keyboard]
visible=false

Thanks for your response!

I find that the following also works: (it doesn't produce warnning or error, but not work either)

[org.gnome.settings-daemon.plugins.xsettings.overrides]
Gtk/IMModule=fcitx

I've just updated the fcitx-sogoupinyin package.

Last edited by vanitas (2016-06-11 18:00:58)

Offline

Board footer

Powered by FluxBB