← Back to team overview

touch-packages team mailing list archive

[Bug 880549] Re: Main menu entry for GVim not created when installing vim-gtk

 

This still happens on Lubuntu 14.04.1 LTS.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to vim in Ubuntu.
https://bugs.launchpad.net/bugs/880549

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

Status in vim package in Ubuntu:
  Confirmed

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vim/+bug/880549/+subscriptions