5

I use Ubuntu 12.04 with gnome-shell and I would like to have gVim in the favorites bar.

How can I put it there? I can't find it under applications but it is installed.

1

1 Answer 1

6

Make a file called ~/.local/share/applications/gvim.desktop and copy the following into it:

[Desktop Entry]
Name=gvim
GenericName=Text Editor
Comment=Edit text files
Keywords=Plaintext;Write;
Exec=gvim %U
Terminal=false
Type=Application
MimeType=text/plain;
Icon=gvim
Categories=Utility;TextEditor;

It should now be in the applications list and you can add it to the favorites bar like any other application.

2
  • Should I reboot the session to make it work? Dec 13, 2012 at 9:35
  • 2
    Yes, I had to terminate the session (it works). Take note that the icon image didn't work on my Ubuntu 12.04. After searching a bit I found a solution: Icon=/usr/share/app-install/icons/vim.png. Now I have the icon too :) Dec 13, 2012 at 9:44

You must log in to answer this question.

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