Alacritty:无法加载 /usr/share/icons/Yaru/16x16/status/image-missing.png

Alacritty:无法加载 /usr/share/icons/Yaru/16x16/status/image-missing.png

当我尝试从 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/mimegdk-pixbuf-query-loaders --update-cache,但这些建议并不能解决我的问题。

有人能建议我可以尝试从命令行运行它吗?

答案1

在 alacritty 中,设置了两个与 gvim 混淆的环境变量,因此要修复它,请将其添加到.bashrc

unset GDK_PIXBUF_MODULEDIR
unset GDK_PIXBUF_MODULE_FILE

相关内容