ubuntu 14.04 安装gvim 后报出warning

(gvim:3572): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::sm-connect after class was initialised

(gvim:3572): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::show-crash-dialog after class was initialised

(gvim:3572): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::display after class was initialised (gvim:3572): GLib-GObject-WARNING **: Attempt to add property GnomeProgram::default-icon after class was initialised


解决方法:
在启动gvim时,把标准错误重定向一下就好了...

在.bashrc中加入如下语句:

alias gvim='gvim 2>/dev/null'

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

你可能感兴趣的:(ubuntu 14.04 安装gvim 后报出warning)