ubuntu升级到13.10后,发现启动gvim时有GLib-GObject-WARNING。


ubuntu升级到13.10后,发现启动gvim时有GLib-GObject-WARNING。在网上搜索了很久,但是没有找到原因和解决办法。


(gvim:3760): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::sm-connect after class was initialised
(gvim:3760): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised
(gvim:3760): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::display after class was initialised
(gvim:3760): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::default-icon after class was initialised


其实这些warning并不影响gvim的功能,但是每次启动gvim都有这种警告,心里很是不爽,于是就在.bashrc中处理了一下,能规避这种提示,算是暂时解决这个问题吧,其实做很简单,就是在启动gvim时,把标准错误重定向一下就好了...

在.bashrc中加入如下语句:

alias='gvim 2>/dev/null'

这样就能把提示出的warning重定向到/dev/null中了,控制台中就不会出现上述warning了。

你可能感兴趣的:(ubuntu升级到13.10后,发现启动gvim时有GLib-GObject-WARNING。)