![启动 gnome-control-center 时出错](https://linux22.com/image/918958/%E5%90%AF%E5%8A%A8%20gnome-control-center%20%E6%97%B6%E5%87%BA%E9%94%99.png)
gnome-control-center
当我尝试在 Kubuntu 19.04 上启动时出现以下错误:
$ gnome-control-center
(gnome-control-center:3239): Gtk-WARNING **: 16:12:56.364: Theme parsing error: gtk.css:68:35: The style property GtkButton:child-displacement-x is deprecated and shouldn't be used anymore. It will be removed in a future version
(gnome-control-center:3239): Gtk-WARNING **: 16:12:56.364: Theme parsing error: gtk.css:69:35: The style property GtkButton:child-displacement-y is deprecated and shouldn't be used anymore. It will be removed in a future version
**
ERROR:../shell/cc-shell-model.c:458:cc_shell_model_set_panel_visibility: assertion failed: (valid)
Aborted (core dumped)
有什么办法可以解决这个问题吗?
答案1
您可以运行locate gtk.css
并找到这些文件的位置:
然后你可以使用以下命令进行注释:
sudo sed -i -E 's~^.*child-displacement-.*$~/* \0 */~g' /usr/share/themes/Breeze/gtk-3.20/gtk.css
对我来说,我还需要运行:
sudo sed -i -E 's~^.*-GtkScrolledWindow-scrollbars-within-bevel.*$~/* \0 */~g' /usr/share/themes/Breeze/gtk-3.20/gtk.css