| Summary: | New item entries added within a submenu that are given a name that matches another menu item do not show up in K Menu after saving. | ||
|---|---|---|---|
| Product: | [Unmaintained] plasma4 | Reporter: | Paul L. <snowhg> |
| Component: | widget-kickoff | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | mboquien, notmart, ruchir.brahmbhatt |
| Priority: | NOR | Keywords: | triaged |
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Paul L.
2008-11-14 21:26:24 UTC
didn't understood exactly the explanation: if let's say there is the top level category "Internet" i create a link to an application called "Internet" too the link to the application called internet doesn't get shown correct? Open Menu Editor. Click on System. Click on Terminal (Konsole). Note the Name: and Description: entries under the General tab. What I am describing is this: In the System Submenu, click on New Item. Give it the Name: Konsole and a Description: of Root Terminal and in Command: type konsole Now click on the Advanced tab and check the Run as different user box and in Username: type root Click on Save After the database has been updated, close Menu Editor. Now look for your new entry in K Menu (K Menu > Applications > System) and you will not find it. It is there, it just isn't being displayed. This is because in Intrepid Ibex, in order for a Submenu Item entry to be displayed, the Name must be unique - it can not be the same name of an existing item. Try it. You will see this to be true. yeah, i found where it's done, duplicates are excluded to use just the later version if for instance both a kde3 and kde4 versions are present, so it's quite the intended behaviour, even if it can cause some hassle It may be intended, and I'll not quibble that point, but it should be made clear to the user that this is how it works. The fact that the newly added item is actually saved means that the underlying editor doesn't have a problem with items that have the same names. So it's simply an issue on how the system displays the resulting K Menu. To me, it would seem a simple solution to build the index using the Name and Description of the items in Submenus. One could then have items with the same name (Terminal) but with different descriptions (Terminal and Root Terminal). I think apart from name and description, command also matters. I think even if name and description are same but command is different, it should show the entry in kmenu. In my case, I used name "Konsole", description "Root Terminal" and Command "xterm" which didn't show up. I'm on r958058. SVN commit 960100 by aseigo: only count items as duplicates if all user visible information matches (name, generic name and icon name) BUG:175161 M +20 -12 applicationmodel.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=960100 |