Main menu not refreshed after package installation

Bug #8310 reported by Julien Olivier
8
Affects Status Importance Assigned to Milestone
gnome-panel (Ubuntu)
Fix Released
Medium
Sebastien Bacher

Bug Description

If I install a new package (glade in my case) using synaptic, the main menu
doesn't reflect the change until I kill gnome-panel.

I'm sure, though, that FAM is running and working because if I type "mkdir
~/Desktop/test" in a terminal, I can see the new "test" folder on the desktop
immediately.

http://bugzilla.gnome.org/show_bug.cgi?id=155409: http://bugzilla.gnome.org/show_bug.cgi?id=155409

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

No problem here ... do you still have the problem ? If if move/change a file in
/usr/share/applications/ the changes are immediatly displayed.

Revision history for this message
Julien Olivier (julo) wrote :

Actually the problem seems to happen only when you install packages that add a
new category in the main menu. Here is an example:

 - make sur you don't have a "Développement" submenu in the main menu (my
desktop is in French locale)
 - install glade-2
 - look at the menu
 - nothing new appeared
 - killall gnome-panel
 - now, there is a new "Développement" sub-menu containing glade
 - uninstall glade
 - look at the menu
 - no more "Développement" sub-menu, but an empty "programming" sub-menu
 - killall gnome-panel
 - no more "programming" sub-menu

Strange, isn't it ?

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

I've reported the issue upstream:
http://bugzilla.gnome.org/show_bug.cgi?id=155409

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

this is fixed with the new menu system in hoary

Revision history for this message
Julien Olivier (julo) wrote :

Today (running an up to date Hoary), I've installed Firestarter and I couldn't
see any entry for it unitl I killed gnome-panel. Then I had an entry in
Applications -> System Tools.

Later on, I removed Firestarter, and its entry remained in the main menu until I
killed it again.

Reopening...

Revision history for this message
Julien Olivier (julo) wrote :

Note that Firestarter doesn't need to create a new category in the main menu, so
this is not really related to the use-case described in comment #2, and thus to
the upstream bug located here: http://bugzilla.gnome.org/show_bug.cgi?id=155409.

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

so that's not really this bug but a new one. Do you have gam_server running ?

Revision history for this message
Julien Olivier (julo) wrote :

Yes, gam_server is running. And if I type "touch ~/Desktop/test", a file named
"test" appears on Nautilus' desktop.

Here's an interesting experience I did:
 - I typed "sudo cp /usr/share/applications/gaim.desktop
/usr/share/applications/gaim2.desktop" and I didn't get a new gaim entry.
 - Then, I tried "sudo cp /usr/share/applications/gaim.desktop
/usr/share/applications/gaim3.desktop" about 5 minutes later, and I got 3 gaim
entries in the menu.

Revision history for this message
Julien Olivier (julo) wrote :

Here is a follow up:
 - I removed Firestarter, and it remained in the main menu
 - I typed "sudo rm /usr/share/applications/gaim2.desktop
/usr/share/applications/gaim3.desktop" and the 2 dummy gaim entries and
Firestarter's entry all disappeared immediately.

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

could you:
- gnome-session-remove gnome-panel
- GAM_DEBUG=1 gnome-panel
- cp the desktop file
- paste here the gamin log

With a "cp gedit.desktop gedit2.deskop" I get this:

FAMNextEvent : Created : gedit2.desktop
FAMPending(fd = 19)
accepted event: seq 17, type 1
FAMNextEvent(fd = 19)
FAMNextEvent : Changed : gedit2.desktop
FAMPending(fd = 19)
accepted event: seq 17, type 1
FAMNextEvent(fd = 19)
FAMNextEvent : Changed : gedit2.desktop
FAMPending(fd = 19)

And the menu is immediatly updated ...

Revision history for this message
Julien Olivier (julo) wrote :

Created an attachment (id=1182)
output of GAM_DEBUG=1 gnome-panel

I recorded the output of GAM_DEBUG=1 gnome-panel > panel while I did the
following:
 - sudo cp /usr/share/applications/gedit.desktop
/usr/share/applications/gedit2.desktop
 - A second gedit appeared in the accessories menu
 - I installed firestarter
 - Nothing appeared in the system tools menu
 - sudo cp /usr/share/applications/gedit.desktop
/usr/share/applications/gedit3.desktop
 - A third gedit appeared in the accessories menu, and a firestarter entry
appeared in the system tools menu
 - I removed firestarter
 - Firestarter remained in the menu
 - sudo rm /usr/share/applications/gedit2.desktop
/usr/share/applications/gedit3.desktop
 - The dummy gedit entried disappeared from the accessories menu, and
firestarter entry disappeared from the system tools menu

Revision history for this message
Julien Olivier (julo) wrote :

Created an attachment (id=1183)
output of GAM_DEBUG=1 gnome-panel

Sorry, this one is the correct log.

Revision history for this message
Julien Olivier (julo) wrote :

Created an attachment (id=1185)
A screenshot showing the bug

On this screenshot, I opened the main menu just after removing firestarter.

As you can see, gamin says: FAMNextEvent : Deleted : firestarter.desktop

But Firestarter still appears in the system tools menu.

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

ok, found the bug, that's because firestart puts it desktop file in
/usr/share/gnome/apps/Internet/ instead of /usr/share/applications/ and this
directory is just here for compatibility reasons but not used in the same way.
I'm closing this bug and I've opened #5934 about this since that's a different
bug from #1554.

Revision history for this message
Julien Olivier (julo) wrote :

OH, well done and thanks !

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.