码迷,mamicode.com
首页 > 系统相关 > 详细

ubuntu 14.04 安装gvim 后报出warning

时间:2015-10-14 21:41:07      阅读:445      评论:0      收藏:0      [点我收藏+]

标签:

(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

标签:

原文地址:http://www.cnblogs.com/flymood/p/4878721.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!