O que está sobrescrevendo as configurações do layout do teclado em todo o sistema?

0

Eu tenho

[org.gnome.desktop.input-sources]
sources=[('xkb', 'us'), ('xkb', 'hu')]

no arquivo /usr/share/glib-2.0/schemas/99_my.gschema.overrride. Eu corri glib-compile-schemas /usr/share/glib-2.0/schemas e agora eles se tornaram configurações padrão em todo o sistema. E sempre que gsettings get org.gnome.desktop.input-sources sources devolver [('xkb', 'us'), ('xkb', 'hu')] , tenho 2 layouts disponíveis no painel.

No entanto, se eu esvaziar meu diretório home e reinicializar, então todas as configurações devem retornar ao padrão do sistema, e isso realmente acontece, portanto todas as minhas outras configurações em 99_my.gschema.override entram em vigor, exceto pela configuração de layout de teclado

$ gsettings get org.gnome.desktop.input-sources sources
[('xkb', 'us')]

A redefinição com o comando gsettings para o padrão em todo o sistema faz com que, conforme desejado, os dois layouts sejam exibidos no painel.

$ gsettings reset org.gnome.desktop.input-sources sources
$ gsettings get org.gnome.desktop.input-sources sources
[('xkb', 'us'), ('xkb', 'hu')]

Isso me faz suspeitar que algum processo (talvez unity-settings-daemon , talvez indicator-keyboard-service , ..?) substitua o padrão em todo o sistema a cada login.

Eu denunciaria um bug, mas não sei contra o quê. Você sabe o que pode causar isso?

update : executando

gsettings list-recursively >/tmp/01
gsettings list-schemas | xargs -n 1 gsettings reset-recursively
gsettings list-recursively >/tmp/02
diff /tmp/01 /tmp/02

depois de home-dir-clean e reboot, produz:

197c197
< org.gnome.settings-daemon.plugins.media-keys terminal '<Control><Alt>t'
---
> org.gnome.settings-daemon.plugins.media-keys terminal '<Primary><Alt>t'
473c473
< org.gnome.settings-daemon.plugins.media-keys terminal '<Control><Alt>t'
---
> org.gnome.settings-daemon.plugins.media-keys terminal '<Primary><Alt>t'
1021c1021
< org.gnome.desktop.wm.keybindings minimize ['<Control><Alt>KP_0']
---
> org.gnome.desktop.wm.keybindings minimize ['<Primary><Alt>KP_0']
1027c1027
< org.gnome.desktop.wm.keybindings unmaximize ['<Control><Super>Down']
---
> org.gnome.desktop.wm.keybindings unmaximize ['<Primary><Super>Down', '<Super>Down', '<Alt>F5']
1032c1032
< org.gnome.desktop.wm.keybindings panel-main-menu ['<Super>s']
---
> org.gnome.desktop.wm.keybindings panel-main-menu ['<Super>s', '<Alt>F1']
1039c1039
< org.gnome.desktop.wm.keybindings move-to-workspace-right ['<Shift><Control><Alt>Right']
---
> org.gnome.desktop.wm.keybindings move-to-workspace-right ['<Control><Shift><Alt>Right']
1041,1042c1041,1042
< org.gnome.desktop.wm.keybindings raise ['disabled']
< org.gnome.desktop.wm.keybindings maximize ['<Control><Super>Up']
---
> org.gnome.desktop.wm.keybindings raise @as []
> org.gnome.desktop.wm.keybindings maximize ['<Primary><Super>Up', '<Super>Up', '<Primary><Alt>KP_5']
1046c1046
< org.gnome.desktop.wm.keybindings maximize-horizontally ['disabled']
---
> org.gnome.desktop.wm.keybindings maximize-horizontally @as []
1052c1052
< org.gnome.desktop.wm.keybindings move-to-workspace-left ['<Shift><Control><Alt>Left']
---
> org.gnome.desktop.wm.keybindings move-to-workspace-left ['<Control><Shift><Alt>Left']
1059c1059
< org.gnome.desktop.wm.keybindings lower ['disabled']
---
> org.gnome.desktop.wm.keybindings lower @as []
1063,1067c1063,1067
< org.gnome.desktop.wm.keybindings toggle-shaded ['<Control><Alt>s']
< org.gnome.desktop.wm.keybindings switch-to-workspace-1 ['disabled']
< org.gnome.desktop.wm.keybindings switch-to-workspace-2 ['disabled']
< org.gnome.desktop.wm.keybindings switch-to-workspace-3 ['disabled']
< org.gnome.desktop.wm.keybindings switch-to-workspace-4 ['disabled']
---
> org.gnome.desktop.wm.keybindings toggle-shaded ['<Primary><Alt>s']
> org.gnome.desktop.wm.keybindings switch-to-workspace-1 @as []
> org.gnome.desktop.wm.keybindings switch-to-workspace-2 @as []
> org.gnome.desktop.wm.keybindings switch-to-workspace-3 @as []
> org.gnome.desktop.wm.keybindings switch-to-workspace-4 @as []
1072,1078c1072,1078
< org.gnome.desktop.wm.keybindings maximize-vertically ['disabled']
< org.gnome.desktop.wm.keybindings switch-to-workspace-7 ['disabled']
< org.gnome.desktop.wm.keybindings switch-to-workspace-5 ['disabled']
< org.gnome.desktop.wm.keybindings show-desktop ['<Control><Super>d']
< org.gnome.desktop.wm.keybindings switch-to-workspace-8 ['disabled']
< org.gnome.desktop.wm.keybindings switch-to-workspace-9 ['disabled']
< org.gnome.desktop.wm.keybindings switch-to-workspace-6 ['disabled']
---
> org.gnome.desktop.wm.keybindings maximize-vertically @as []
> org.gnome.desktop.wm.keybindings switch-to-workspace-7 @as []
> org.gnome.desktop.wm.keybindings switch-to-workspace-5 @as []
> org.gnome.desktop.wm.keybindings show-desktop ['<Primary><Super>d', '<Primary><Alt>d', '<Super>d']
> org.gnome.desktop.wm.keybindings switch-to-workspace-8 @as []
> org.gnome.desktop.wm.keybindings switch-to-workspace-9 @as []
> org.gnome.desktop.wm.keybindings switch-to-workspace-6 @as []
1080,1082c1080,1082
< org.gnome.desktop.wm.keybindings switch-to-workspace-10 ['disabled']
< org.gnome.desktop.wm.keybindings switch-to-workspace-11 ['disabled']
< org.gnome.desktop.wm.keybindings switch-to-workspace-12 ['disabled']
---
> org.gnome.desktop.wm.keybindings switch-to-workspace-10 @as []
> org.gnome.desktop.wm.keybindings switch-to-workspace-11 @as []
> org.gnome.desktop.wm.keybindings switch-to-workspace-12 @as []
1084c1084
< org.gnome.desktop.wm.keybindings toggle-maximized ['<Control><Alt>KP_5']
---
> org.gnome.desktop.wm.keybindings toggle-maximized ['<Primary><Alt>KP_5']
1904,1905c1904,1905
< org.compiz existing-profiles ['Default', 'unity']
< org.compiz current-profile 'unity'
---
> org.compiz existing-profiles ['Default']
> org.compiz current-profile 'Default'
2144c2144
< org.gnome.desktop.input-sources sources [('xkb', 'us')]
---
> org.gnome.desktop.input-sources sources [('xkb', 'us'), ('xkb', 'hu')]
2388c2388
< org.compiz.integrated run-command-3 ['disabled']
---
> org.compiz.integrated run-command-3 ['Disabled']
2390c2390
< org.compiz.integrated run-command-4 ['disabled']
---
> org.compiz.integrated run-command-4 ['Disabled']
2392,2396c2392,2396
< org.compiz.integrated run-command-8 ['disabled']
< org.compiz.integrated run-command-9 ['disabled']
< org.compiz.integrated run-command-12 ['disabled']
< org.compiz.integrated run-command-1 ['disabled']
< org.compiz.integrated run-command-10 ['disabled']
---
> org.compiz.integrated run-command-8 ['Disabled']
> org.compiz.integrated run-command-9 ['Disabled']
> org.compiz.integrated run-command-12 ['Disabled']
> org.compiz.integrated run-command-1 ['Disabled']
> org.compiz.integrated run-command-10 ['Disabled']
2412c2412
< org.compiz.integrated run-command-11 ['disabled']
---
> org.compiz.integrated run-command-11 ['Disabled']
2414,2417c2414,2417
< org.compiz.integrated run-command-5 ['disabled']
< org.compiz.integrated run-command-6 ['disabled']
< org.compiz.integrated run-command-7 ['disabled']
< org.compiz.integrated run-command-2 ['disabled']
---
> org.compiz.integrated run-command-5 ['Disabled']
> org.compiz.integrated run-command-6 ['Disabled']
> org.compiz.integrated run-command-7 ['Disabled']
> org.compiz.integrated run-command-2 ['Disabled']
2628c2628
< com.canonical.indicator.keyboard migrated true
---
> com.canonical.indicator.keyboard migrated false

i.e. a configuração do layout do teclado é apenas uma daquelas que são sobrescritas por algo.

Esta lista pode revelar para alguns de vocês qual processo / serviço é o culpado.

update2: link

    
por oyxpiukg 05.02.2015 / 18:17

2 respostas

1

Sugiro que você passe pelo menu de configurações e faça algumas coisas. Primeiro, abra o menu de suporte ao idioma e ele deverá informar se o suporte ao idioma está instalado completamente. Em segundo lugar, abra Região e Idioma e, na guia Sistema, deve haver uma opção para copiar suas configurações para as configurações do sistema. Tente fazer isso

    
por Sergiy Kolodyazhnyy 07.02.2015 / 18:01
0

É um componente do Unity Destop Environment .

Eu instalei o gnome-shell, e entrei no gnome-session, executei o script na questão e o diff estava vazio, portanto essa sessão não substituiu as configurações. E, de fato, os dois layouts de teclado estão disponíveis no painel.

Eu enviei um relato de erro: link

    
por foobar 06.02.2015 / 11:35