当我尝试从Alacritty中的 shell 运行 gvim 时,出现以下错误:
(gvim:9528): Gtk-WARNING **: 09:34:43.359: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.
**
Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Yaru/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
Bail out! Gtk:ERROR:../../../../gtk/gtkiconhelper.c:494:ensure_surface_for_gicon: assertion failed (error == NULL): Failed to load /usr/share/icons/Yaru/16x16/status/image-missing.png: Unrecognized image file format (gdk-pixbuf-error-quark, 3)
Vim: Caught deadly signal ABRT
Vim: Finished.
E852: The child process failed to start the GUI
但是,从 gnome 桌面启动 gvim 似乎工作正常。提到的特定图标文件是可访问的,并且似乎没有损坏。我已经看到了很多关于运行的建议,但是这些update-mime-database /usr/share/mime
并gdk-pixbuf-query-loaders --update-cache
不能解决我的问题。
谁能建议我可以尝试从命令行使它工作的其他任何东西?
在 alacritty 中,设置了两个与 gvim 混淆的环境变量,因此要修复,请添加到您的
.bashrc
: