33

I upgraded from ubuntu 13.04 to ubuntu 13.10 this afternoon. And when I try starting vim form the terminal after the upgrade, I get these warnings

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

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

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

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


How can I fix these and what exectly are these warnings about

1
  • 2
    This happens too in xubuntu, lubuntu and ubuntu 13.10 and it's been reported as a bug
    – PerseP
    Oct 24, 2013 at 20:18

4 Answers 4

28

This doesn't fix your issue, but I tried removing and installing vim-gnome and had the same problem. So, I removed vim-gnome and installed vim-gtk and it works fine.

17

I was seeing this in 14.04. But I only had vim-gnome installed. Removing vim-gnome and installing vim-gtk works without any error messages.

sudo apt-get -y remove vim-gnome
sudo apt-get install vim-gtk
7

For solving this, I added an alias to run gvim with all stderr messages discarded.

Just add the following line to your .bashrc file:

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

I hate these types of errors and warnings when the program I'm using is beyond my control and it prints a lot of these which distract me from what I'm doing.

0
1

After checking your suggestions I learned that I had both vim-gnome and vim-gtk installed.

This issue was solved for me by removing vim-gnome and simply keeping vim-gtk.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .