今天刚刚升级至Ubuntu13.10,在终端打开gvim时提示一些出错信息,不是很雅观:

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

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

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

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

临时的解决办法:

gvim ~/bin/gvim,输入以下内容保存:

#!/bin/bash -

/usr/bin/gvim --remote-tab-silent --disable-crash-dialog "$@" 2>/dev/null
04-30 20:22