〖Linux〗Ubuntu13.10,在终端打开gvim提示“GLib-GObject-WARNING”的临时解决办法
今天刚刚升级至Ubuntu13.10,在终端打开gvim时提示一些出错信息,不是很雅观:
(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 ~/bin/gvim,输入以下内容保存:
#!/bin/bash - /usr/bin/gvim --remote-tab-silent --disable-crash-dialog "$@" 2>/dev/null