什么是覆盖系统范围的键盘布局设置?

什么是覆盖系统范围的键盘布局设置?

我有

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

在 /usr/share/glib-2.0/schemas/99_my.gschema.overrride 文件中。我运行glib-compile-schemas /usr/share/glib-2.0/schemas后,这些现在成为系统范围内的默认设置。每当gsettings get org.gnome.desktop.input-sources sources返回时[('xkb', 'us'), ('xkb', 'hu')],面板中就有 2 个可用的布局。

但是,如果我清空我的主目录并重新启动,那么所有设置都应该恢复为系统范围的默认值,而且确实会发生这种情况,因此我的所有其他设置都会99_my.gschema.override生效,除了那个键盘布局设置

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

使用gsettings命令重置为系统范围的默认设置会导致面板中同时出现两种布局。

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

这让我怀疑某些进程(可能unity-settings-daemon,可能indicator-keyboard-service,......?)会在每次登录时覆盖系统范围的默认值。

我想报告错误,但我不知道针对什么。你知道是什么原因造成的吗?

更新: 跑步

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

在 home-dir-clean 并重启后,产生:

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

即键盘布局设置只是被某些设置覆盖的设置之一。

此列表可能会向某些人揭示哪个流程/服务是罪魁祸首。

更新2:https://bugs.launchpad.net/unity/+bug/1418939

答案1

我建议你浏览一下设置菜单,然后做几件事。首先,打开语言支持菜单,它会告诉你语言支持是否已完全安装。其次,打开“区域和语言”,在“系统”选项卡下,应该有一个选项可以将您的设置复制到系统设置。尝试这样做

在此处输入图片描述

答案2

它是Unity 桌面环境

我安装了 gnome-shell,并登录到 gnome-session,运行了问题中的脚本,diff 为空,因此该会话没有覆盖任何设置。而且面板中确实提供了两种键盘布局。

我提交了一个错误报告:https://bugs.launchpad.net/unity/+bug/1418939

相关内容