gconf 覆盖 glib 模式错误 - “无法解析为‘d’类型的值”

gconf 覆盖 glib 模式错误 - “无法解析为‘d’类型的值”

text-scaling-factor我正在尝试覆盖系统上的gconf 设置scaling-factor,方法如下这里提到

/usr/share/glib-2.0/schemas/30-retina-scaling.gschema.override因此我创建了一个包含以下内容的文件:

[org.gnome.desktop.interface]
text-scaling-factor="0.75"
scaling-factor="2"

但是当我尝试编译它时,我收到错误“无法解析为类型的值”:

$ sudo glib-compile-schemas /usr/share/glib-2.0/schemas/
error parsing key 'text-scaling-factor' in schema 'org.gnome.desktop.interface' as specified in override file '/usr/share/glib-2.0/schemas/30-retina-scaling.gschema.override': 0-6:can not parse as value of type 'd'.Ignoring override for this key.
error parsing key 'scaling-factor' in schema 'org.gnome.desktop.interface' as specified in override file '/usr/share/glib-2.0/schemas/30-retina-scaling.gschema.override': 0-3:can not parse as value of type 'u'.Ignoring override for this key.

答案1

所以结果发现是引号搞乱了这一切。文件的内容应该是:

[org.gnome.desktop.interface]
text-scaling-factor=0.75
scaling-factor=2

相关内容