Re: gsettings org.gnome.desktop.input-sources current alternative



That did the trick. Thanks!


On 03/27/2017 03:34 PM, Rui Tiago Cação Matos wrote:
On Sun, Mar 26, 2017 at 3:34 PM, Zan Zellor <zanzellor gmx com> wrote:
gsettings org.gnome.desktop.input-sources current 1

but it doesn't do anything.

Looking through its description using dconf-editor, I see it says that the
key is deprecated. Is there any alternative for the current key?
Right, it doesn't do anything because it's no longer used and that's
why it says it's deprecated. This runtime state used to be kept in
sync between gnome-settings-daemon and gnome-shell through that
gsetting but that had a few drawbacks so the whole functionality was
migrated to mutter/gnome-shell and so this is only kept internally
now.

You can still poke at it through the command line since gnome-shell
exposes a JS eval interface on DBus which has access to all its
internal objects. Something like:

$ gdbus call --session --dest org.gnome.Shell --object-path
/org/gnome/Shell --method org.gnome.Shell.Eval
"imports.ui.status.keyboard.getInputSourceManager().inputSources[0].activate()"

should activate your 0th layout and so forth for other indexes.

Rui



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]