Installing package that contains a .desktop file does not appear in the Application Menu

Bug #533264 reported by Daniel Bell
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-menus (Ubuntu)
Fix Released
Low
Martin Pitt
Lucid
Fix Released
Low
Martin Pitt

Bug Description

Binary package hint: gnome-menus

Ubuntu Version: Lucid (with latest updates (as far as I know)).
gnome-menus version: 2.29.91-0ubuntu2.

I have generated a debian package which contains a .desktop file, and when I install the package the .desktop file is stored in /usr/share/applications

I am expecting a menu entry to appear in the Games category (as this is specified in the .desktop file) so that users can easily access the game and not have to run it from the command line. However, after installation of the package has completed there is no menu entry, (even though there is a .desktop file in the /usr/share/applications folder).

I have tested my package in Karmic where the entry appears in the menu under the Games category.
I have also tested my package under Lucid (alpha-3 that I downloaded from here: http://cdimage.ubuntu.com/releases/lucid/alpha-3/ - amd64 version) and after installing the same package, my menu entry appeared correctly. So I think the change that broke this would be somewhere between alpha-3 and what we have now.

If you need any more information, I'm happy to provide it.

Revision history for this message
Emmet Hikory (persia) wrote :

I was briefly able to replicate this in lucid with the .desktop files shipped in the 'teg' and 'nethack' packages. The behaviour did not change after invoking update-gnome-menus-cache. I moved teg.desktop, and added a new teg.desktop including "Version=1.0", and re-updated the cache, with no change. I removed the edited teg.desktop and replaced it with the original. Both the teg and nethack entries appeared *without* running update-gnome-menus-cache.

Revision history for this message
Sebastien Bacher (seb128) wrote :

thank you for your bug report, did the cache got updated after your install? could you look if your entry was listed there? did it work when restarting the session?

Changed in gnome-menus (Ubuntu):
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Daniel Bell (danielbell) wrote :

Hi, yes when I install my package it updates the cache, and after looking in the entry I see my game listed there with an entry that is the same to the .desktop file that I installed.

After restarting my session, nothing new happens. My icon is still missing from the menu - despite being in /usr/share/applications and the cache.

Revision history for this message
Sebastien Bacher (seb128) wrote :

how is named the cache file and what locale do you use?

Revision history for this message
Daniel Bell (danielbell) wrote :

Cache file is named: desktop.en_GB.utf8.cache and as far as I know my local is English (United Kingdom).

Revision history for this message
Sebastien Bacher (seb128) wrote :

do you get the menu item listed if you delete the cache?

Changed in gnome-menus (Ubuntu):
status: Incomplete → New
Revision history for this message
Daniel Bell (danielbell) wrote :

Nope, after deleting desktop.en_GB.utf8.cache the menu item is still not listed. I even restarted my computer after that and the menu item was still not listed.

Revision history for this message
Sebastien Bacher (seb128) wrote :

could you add an example to the bug, it will make easier to debug it

Revision history for this message
Daniel Bell (danielbell) wrote :

Sure, by example, do you mean the package I was trying to install?

Revision history for this message
Sebastien Bacher (seb128) wrote :

yes or a .desktop to install to trigger the issue (with maybe a binary to create before so the .desktop entry doesn't seem broken by pointing to a non install binary)

Revision history for this message
Daniel Bell (danielbell) wrote :

Here is the package that I was installing.

Installing this package on Karmic results in a menu item being listed under the Games tab in Applications.

Installing this package in Lucid (Alpha 3) results in a menu item being listed under the Games tab in Applications.

Installing this package in the current version of Lucid, results in no menu item being listed under the Games tab in Applications.

Changed in gnome-menus (Ubuntu Lucid):
assignee: nobody → Canonical Desktop Team (canonical-desktop-team)
Martin Pitt (pitti)
Changed in gnome-menus (Ubuntu Lucid):
assignee: Canonical Desktop Team (canonical-desktop-team) → Martin Pitt (pitti)
Revision history for this message
Martin Pitt (pitti) wrote :

I just downloaded that .deb, and I immediately get a working menu entry for it. After uninstalling it is removed again.

Can you please retry this on current lucid? (beta-1). I recently uploaded some fixes for the application menu cache:

  https://launchpad.net/ubuntu/+source/gnome-menus/2.29.91-0ubuntu2

perhaps you didn't have that version yet? What is the version of python-gmenu that you have?

On the other hand..

> Nope, after deleting desktop.en_GB.utf8.cache the menu item is still not listed.

this indicates that it is not a cache issue in the first place.

But still, testing on current lucid is appreciated, so that we can see whether this was a bug recently fixed, or something unique to your system. Thanks!

Changed in gnome-menus (Ubuntu Lucid):
status: New → Incomplete
Revision history for this message
Daniel Bell (danielbell) wrote :

Hi Martin,

I've downloading and installed the Beta release, and after installing the .deb file the menu item is created and located where I expected it to be.

I do run updates on my machine every week (at least) so I do have current updates, I guess that it is something unique to my machine - a symptom of the many updates perhaps?

Revision history for this message
Martin Pitt (pitti) wrote :

Thanks for testing again. So I mark this as fixed.

In pre-beta 1 versions there were indeed various bugs in gnome-menus which made desktop files not appear at all/immediately.

Changed in gnome-menus (Ubuntu Lucid):
status: Incomplete → Fix Released
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.