Gnome Shell 无法加载,我不知道为什么。根据此快照.xsession-errors
,它似乎与放大镜有关:
(gnome-shell:2886): GLib-GIO-ERROR **: Settings schema 'org.gnome.desktop.a11y.magnifier' does not contain a key named 'invert-lightness'
gnome-session[2262]: WARNING: Application 'gnome-shell.desktop' killed by signal 5
gnome-session[2262]: WARNING: App 'gnome-shell.desktop' respawning too quickly
gnome-session[2262]: CRITICAL: We failed, but the fail whale is dead. Sorry....
现在,org.gnome.desktop.a11y.magnifier
绝对做因为invert-lightness
我刚刚在和中都添加dconf-editor
了gconf-editor
它false
,正如这里建议的那样。重启后,该消息仍然出现。
那么,这个错误是什么意思?添加invert-lightness
不是它要求的吗?
答案1
因此,事实证明它并不是dconf-editor
它专门寻找的设置,而是架构不知何故不同步了。
第一的尝试重新安装该软件包gsettings-desktop-schemas
;对我来说它不起作用:
如果这不起作用,这有点像 hack,但使用来自Gnome Shell 文档,我重新创建了架构条目并对其进行了编译。Gnome Shell 复活了!
添加缺失值
使用(备份文件后)
gksudo gedit /usr/share/glib-2.0/schemas/org.gnome.desktop.a11y.magnifier.gschema.xml
在中间某处添加以下内容:
<key type="b" name="invert-lightness">
<default>false</default>
<summary>Invert lightness</summary>
<description>(none)</description>
</key>
<key type="d" name="brightness-red">
<default>0</default>
<range min="-1.0" max="1.0"/>
<summary>Brightness (red)</summary>
<description>Values range between -1.0 to 1.0, where zero indicates no change in brightness, negative values indicate a decrease in brightness and positive values, an increase.</description>
</key>
<key type="d" name="brightness-green">
<default>0</default>
<range min="-1.0" max="1.0"/>
<summary>Brightness (green)</summary>
<description>Values range between -1.0 to 1.0, where zero indicates no change in brightness, negative values indicate a decrease in brightness and positive values, an increase.</description>
</key>
<key type="d" name="brightness-blue">
<default>0</default>
<range min="-1.0" max="1.0"/>
<summary>Brightness (blue)</summary>
<description>Values range between -1.0 to 1.0, where zero indicates no change in brightness, negative values indicate a decrease in brightness and positive values, an increase.</description>
</key>
<key type="d" name="contrast-red">
<default>0</default>
<range min="-1.0" max="1.0"/>
<summary>Contrast (red)</summary>
<description>(none)</description>
</key>
<key type="d" name="contrast-green">
<default>0</default>
<range min="-1.0" max="1.0"/>
<summary>Contrast (green)</summary>
<description>(none)</description>
</key>
<key type="d" name="contrast-blue">
<default>0</default>
<range min="-1.0" max="1.0"/>
<summary>Contrast (blue)</summary>
<description>(none)</description>
</key>
重新编译架构
sudo glib-compile-schemas /usr/share/glib-2.0/schemas
下次注销后,在登录时选择“GNOME”,它应该就修复了。
(注意:如果我重新创建的上述 xml 数据可以在某个时候从工作安装中进行更新,我认为那会更好。)