从命令行启动时来自 gedit 的错误垃圾邮件

从命令行启动时来自 gedit 的错误垃圾邮件

我将 gedit 设置为我的 git 编辑器,它对我来说效果很好。当我这样做时git commit,gedit 会弹出提交信息,我可以输入我的提交消息,Ctrl+S、Ctrl+Q 和 git 将按预期进行。

然而,因为git commit是从命令行运行的,所以gedit它在运行时不断向终端打印一些垃圾错误:

(gedit:13464): Gtk-CRITICAL **: 14:34:01.231: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

(gedit:13464): Gtk-CRITICAL **: 14:34:06.108: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

(gedit:13464): Gtk-CRITICAL **: 14:34:07.616: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

(gedit:13464): Gtk-CRITICAL **: 14:34:13.934: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar

尽管这些错误被标记为严重,但我在 gedit 中没有遇到任何实际问题。然而,这些错误确实使我的终端严重混乱,而我宁愿看到更有趣的输出/shell 历史记录(是的,我知道我可以向上滚动,这不是重点),例如git status我刚刚调用的结果前git commit

为什么会打印这些错误?在这种情况下,这显然是一些 GTK 问题,但我并不关心 - 我怎样才能让 gedit 闭嘴呢?

我使用的是 Debian 10,我的 gtk 软件包是:

albatross-gtk-theme/now 1.7.4-1 all [installed,local]
blackbird-gtk-theme/testing,now 0.4+20160704~ab4a30e-1 all [installed,automatic]
bluebird-gtk-theme/testing,now 1.3-1 all [installed,automatic]
fcitx-config-gtk/testing,now 0.4.10-2 amd64 [installed,automatic]
fcitx-frontend-gtk2/now 1:4.2.9.6-5 amd64 [installed,upgradable to: 1:4.2.9.6-6]
fcitx-frontend-gtk3/now 1:4.2.9.6-5 amd64 [installed,upgradable to: 1:4.2.9.6-6]
gedit-common/now 3.30.2-2 all [installed,upgradable to: 3.34.0-1]
gedit-plugin-bookmarks/now 3.30.1-3 amd64 [installed,upgradable to: 3.34.0-3]
gedit-plugin-bracket-completion/now 3.30.1-3 amd64 [installed,upgradable to: 3.34.0-3]
gedit-plugin-character-map/now 3.30.1-3 amd64 [installed,upgradable to: 3.34.0-3]
gedit-plugin-code-comment/now 3.30.1-3 amd64 [installed,upgradable to: 3.34.0-3]
gedit-plugin-color-picker/now 3.30.1-3 amd64 [installed,upgradable to: 3.34.0-3]
gedit-plugin-color-schemer/now 3.30.1-3 amd64 [installed,upgradable to: 3.34.0-3]
gedit-plugin-commander/now 3.30.1-3 amd64 [installed,upgradable to: 3.34.0-3]
gedit-plugin-draw-spaces/now 3.30.1-3 amd64 [installed,upgradable to: 3.34.0-3]
gedit-plugin-find-in-files/now 3.30.1-3 amd64 [installed,upgradable to: 3.34.0-3]
gedit-plugin-git/now 3.30.1-3 amd64 [installed,upgradable to: 3.34.0-3]
gedit-plugin-join-lines/now 3.30.1-3 amd64 [installed,upgradable to: 3.34.0-3]
gedit-plugin-multi-edit/now 3.30.1-3 amd64 [installed,upgradable to: 3.34.0-3]
gedit-plugin-smart-spaces/now 3.30.1-3 amd64 [installed,upgradable to: 3.34.0-3]
gedit-plugin-synctex/now 3.30.1-3 amd64 [installed,upgradable to: 3.34.0-3]
gedit-plugin-terminal/now 3.30.1-3 amd64 [installed,upgradable to: 3.34.0-3]
gedit-plugin-translate/now 3.30.1-3 amd64 [installed,upgradable to: 3.34.0-3]
gedit-plugin-word-completion/now 3.30.1-3 amd64 [installed,upgradable to: 3.34.0-3]
gedit-plugin-zeitgeist/now 3.30.1-3 amd64 [installed,upgradable to: 3.34.0-3]
gedit-plugins-common/now 3.30.1-3 amd64 [installed,upgradable to: 3.34.0-3]
gedit-plugins/now 3.30.1-3 all [installed,upgradable to: 3.34.0-3]
gedit/now 3.30.2-2 amd64 [installed,upgradable to: 3.34.0-1]
gir1.2-gtk-3.0/now 3.24.5-1 amd64 [installed,upgradable to: 3.24.12-1]
gir1.2-gtkclutter-1.0/testing,now 1.8.4-4 amd64 [installed,automatic]
gir1.2-gtksource-3.0/now 3.24.9-2 amd64 [installed,upgradable to: 3.24.11-2]
gir1.2-javascriptcoregtk-4.0/now 2.24.3-1~deb10u1 amd64 [installed,upgradable to: 2.26.1-3]
greybird-gtk-theme/testing,now 3.22.10-1 all [installed,automatic]
gstreamer1.0-gtk3/now 1.14.4-1 amd64 [installed,upgradable to: 1.16.1-1]
gtk-update-icon-cache/now 3.24.5-1 amd64 [installed,upgradable to: 3.24.12-1]
gtk2-engines-murrine/testing,now 0.98.2-2 amd64 [installed,automatic]
gtk2-engines-pixbuf/now 2.24.32-3 amd64 [installed,upgradable to: 2.24.32-4]
gtk2-engines/testing,now 1:2.20.2-5 amd64 [installed,automatic]
ibus-gtk3/now 1.5.19-4 amd64 [installed,upgradable to: 1.5.19-4+b1]
ibus-gtk/now 1.5.19-4 amd64 [installed,upgradable to: 1.5.19-4+b1]
libavahi-ui-gtk3-0/testing,now 0.7-4+b1 amd64 [installed,automatic]
libcanberra-gtk3-0/testing,now 0.30-7 amd64 [installed,automatic]
libcanberra-gtk3-module/testing,now 0.30-7 amd64 [installed,automatic]
libcheese-gtk25/now 3.31.90-1 amd64 [installed,upgradable to: 3.34.0-1+b1]
libclutter-gtk-1.0-0/testing,now 1.8.4-4 amd64 [installed,automatic]
libcolord-gtk1/testing,now 0.1.26-2 amd64 [installed,automatic]
libdbusmenu-gtk3-4/testing,now 18.10.20180917~bzr490+repack1-1 amd64 [installed,automatic]
libdbusmenu-gtk4/testing,now 18.10.20180917~bzr490+repack1-1 amd64 [installed,automatic]
libgtk-3-0/now 3.24.5-1 amd64 [installed,upgradable to: 3.24.12-1]
libgtk-3-bin/now 3.24.5-1 amd64 [installed,upgradable to: 3.24.12-1]
libgtk-3-common/now 3.24.5-1 all [installed,upgradable to: 3.24.12-1]
libgtk-vnc-2.0-0/now 0.9.0-1.1 amd64 [installed,upgradable to: 0.9.0-1.1+b1]
libgtk2.0-0/now 2.24.32-3 amd64 [installed,upgradable to: 2.24.32-4]
libgtk2.0-bin/now 2.24.32-3 amd64 [installed,upgradable to: 2.24.32-4]
libgtk2.0-common/now 2.24.32-3 all [installed,upgradable to: 2.24.32-4]
libgtkmm-2.4-1v5/testing,now 1:2.24.5-4 amd64 [installed,automatic]
libgtkmm-3.0-1v5/now 3.24.0-2 amd64 [installed,upgradable to: 3.24.2-1]
libgtksourceview-3.0-1/now 3.24.9-2 amd64 [installed,upgradable to: 3.24.11-2]
libgtksourceview-3.0-common/now 3.24.9-2 all [installed,upgradable to: 3.24.11-2]
libgtksourceviewmm-3.0-0v5/testing,now 3.18.0-4 amd64 [installed,automatic]
libgtkspell0/now 2.0.16-1.2 amd64 [installed,upgradable to: 2.0.16-1.2+b1]
libgtkspell3-3-0/testing,now 3.0.9-3 amd64 [installed,automatic]
libjavascriptcoregtk-4.0-18/now 2.24.3-1~deb10u1 amd64 [installed,upgradable to: 2.26.1-3]
libreoffice-gtk3/now 1:6.1.5-3+deb10u3 amd64 [installed,upgradable to: 1:6.3.3-2]
libspice-client-gtk-3.0-5/now 0.35-2 amd64 [installed,upgradable to: 0.37-1]
libwebkit2gtk-4.0-37/now 2.24.3-1~deb10u1 amd64 [installed,upgradable to: 2.26.1-3]
libwxgtk3.0-gtk3-0v5/testing,now 3.0.4+dfsg-15 amd64 [installed,automatic]
lightdm-gtk-greeter/testing,now 2.0.6-1 amd64 [installed,automatic]
qalculate-gtk/testing,now 2.8.2-1 amd64 [installed,automatic]
qt5-gtk-platformtheme/testing,now 5.12.5+dfsg-2 amd64 [installed,automatic]
transmission-gtk/now 2.94-2 amd64 [installed,upgradable to: 2.94-2+b1]
uim-gtk2.0-immodule/testing,now 1:1.8.8-6+b1 amd64 [installed,automatic]
uim-gtk2.0/testing,now 1:1.8.8-6+b1 amd64 [installed,automatic]
uim-gtk3-immodule/testing,now 1:1.8.8-6+b1 amd64 [installed,automatic]
uim-gtk3/testing,now 1:1.8.8-6+b1 amd64 [installed,automatic]
xdg-desktop-portal-gtk/testing,now 1.4.0-2 amd64 [installed,automatic]
xdg-user-dirs-gtk/testing,now 0.10-3 amd64 [installed,automatic]

相关内容