Main menu entry for GVim not created when installing vim-gtk

Bug #880549 reported by Phil Grohe
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
vim (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

[Description]
On a fresh 11.10 Lubuntu install no Main Menu -> Accessories entry is created for 'GVim Text Editor' when installing package vim-gtk even though there is a gvim .desktop file located in /usr/share/applications (.desktop file created by vim-gui-common as far as I can tell).

As I understand it LXDE looks for .desktop files in /usr/share/applications to populate the menu. Despite the presence of a gvim.desktop file, still nothing.

I have managed to get the menu entry to appear by opening /usr/share/applications/gvim.desktop as root in vim and simply resaving it without making any changes. After doing this GVim is listed in the Main Menu -> Accessories menu.

Furthermore, once the menu item has appeared (using method above), uninstalling vim-gtk does not remove the menu entry. It remains there but has no effect when clicked. In order for it to go away you must do a re-intsallation of package vim-gui-common.

[Expected Result]
Main menu entry is created when vim-gtk is installed, menu item is removed when vim-gtk is uninstalled.

[Actual Result]
Main menu entry is not created when vim-gtk is installed. Can be remedied by manually re-saving /usr/share/applications/gvim.desktop

Main menu entry is not removed when uninstalling vim-gtk. User must also reinstall vim-gui-common package (which is where the gvim.desktop file comes from.

[Steps To Reproduce]
1. Fresh install of 11.10 Lubuntu (vim-gui-common installed by default, gvim.desktop already present in /usr/share/applications)
2. Install vim-gtk
3. Open main menu -> Accessories, note GVim is not present
5. Open terminal, run 'sudo vim /usr/share/applications/gvim.desktop', simply resave file by typing ':w' followed by enter
6.Open main menu -> Accessories, note GVim is now present

[Operating System]
Description: Ubuntu 11.10
Release: 11.10

[Package Versions]
vim:
  Installed: (none)
  Candidate: 2:7.3.154+hg~74503f6ee649-2ubuntu3
  Version table:
     2:7.3.154+hg~74503f6ee649-2ubuntu3 0
        500 http://ca.archive.ubuntu.com/ubuntu/ oneiric/main i386 Packages

vim-gtk:
  Installed: 2:7.3.154+hg~74503f6ee649-2ubuntu3
  Candidate: 2:7.3.154+hg~74503f6ee649-2ubuntu3
  Version table:
 *** 2:7.3.154+hg~74503f6ee649-2ubuntu3 0
        500 http://ca.archive.ubuntu.com/ubuntu/ oneiric/universe i386 Packages
        100 /var/lib/dpkg/status

vim-gui-common:
  Installed: 2:7.3.154+hg~74503f6ee649-2ubuntu3
  Candidate: 2:7.3.154+hg~74503f6ee649-2ubuntu3
  Version table:
 *** 2:7.3.154+hg~74503f6ee649-2ubuntu3 0
        500 http://ca.archive.ubuntu.com/ubuntu/ oneiric/main i386 Packages
        100 /var/lib/dpkg/status

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in vim (Ubuntu):
status: New → Confirmed
Revision history for this message
Radoslaw Jurga (radoslaw-jurga) wrote :

This still happens on Lubuntu 14.04.1 LTS.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.