GNOME Bugzilla – Bug 165799
Problem defining menu entries
Last modified: 2005-01-31 13:08:07 UTC
Distribution: Debian 3.1 Package: nautilus Severity: normal Version: unspecified Synopsis: Problem defining menu entries Bugzilla-Product: nautilus Bugzilla-Component: Preferences Bugzilla-Version: unspecified Description: Description of Problem: I have gnome 2.8 in debian sid. I am trying to define my own submenus and menu entries (launchers). The problem I have is that after defining submenus, when I try to add a launcher to a menu, the launcher doesn't appears in the submenu. I have try to log out and log in and it doesn't solve the problem. Investigating it I have found that if I remove the Version and X-GNOME-DocPath entries in the launcher file (editing it with vi) the launcher works well. Steps to reproduce the problem: 1. Create a launcher 2. Try to display it 3. To solve it: edit the launcher file Actual Results: Expected Results: How often does this happen? All times I create a new launcher Additional Information: I use the spanish locale ------- Bug moved to this database by unknown@bugzilla.gnome.org 2005-01-31 07:20 ------- Unknown platform unknown. Setting to default platform "Other". Unknown milestone "unknown" in product "nautilus". Setting to default milestone for this product, '---' Setting to default status "UNCONFIRMED". Setting qa contact to the default for this product. This bug either had no qa contact or an invalid one.
I have revised the problem. The problem isn't with that lines mentioned. The problem is with the TryExec= line. I have to remove it to the launcher works
What are the full contents of the TryExec= line?
The menu are handled by gnome-panel, reassigning. BTW this bug is fixed by gnome-panel 2.8.2-2 in Debian (uploaded yesterday): http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=291185 The new panel menu system doesn't use the vfolders so this bug is fixed in the CVS too, I'm closing this bug.
The patch used in the debian package (maybe Vincent wants to commit it to gnome-2-8 ?): diff -Naur gnome-panel-2.8.2.orig/gnome-panel/quick-desktop-reader.c gnome-panel-2.8.2/gnome-panel/quick-desktop-reader.c --- gnome-panel-2.8.2.orig/gnome-panel/quick-desktop-reader.c 2005-01-20 21:51:45.000000000 +0100 +++ gnome-panel-2.8.2/gnome-panel/quick-desktop-reader.c 2005-01-20 22:20:33.000000000 +0100 @@ -100,6 +100,8 @@ p++; if (*p == ' ') p++; + if (*p == '\0') + return NULL; return p; } /* nice wrapper for this to still allow some compiler optimization
*** Bug 165010 has been marked as a duplicate of this bug. ***
Thanks. Fixed in gnome-2-8.