Bug 508651 - After duplicating the entry using KMenuEdit, prompt for new ID/filename so it will actually be shown
Summary: After duplicating the entry using KMenuEdit, prompt for new ID/filename so it...
Status: CONFIRMED
Alias: None
Product: kmenuedit
Classification: Applications
Component: general (other bugs)
Version First Reported In: 6.4.4
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords: usability
Depends on:
Blocks:
 
Reported: 2025-08-23 18:44 UTC by postix
Modified: 2025-12-01 01:07 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description postix 2025-08-23 18:44:56 UTC
STEPS TO REPRODUCE
1. Open KMenuEdit
2. Search for eg FireFox
3. Select Firefox
4. Ctrl+C Ctrl+V
5. Save
6. Open Kicker
7. Search for Firefox

OBSERVED RESULT
Firefox-2 is displayed only

EXPECTED RESULT
Firefox and Firefox-2 are displayed


SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 42
KDE Plasma Version: 6.4.4
KDE Frameworks Version: 6.17.0
Qt Version: 6.9.1
Kernel Version: 6.16.2-200.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Comment 1 postix 2025-08-23 18:48:19 UTC
It seems there's an internal logic, which removes "duplicates". Once "Application" or "CL Argument" fields differ, both entries are displayed. I find this confusing.
Comment 2 Nate Graham 2025-08-26 20:58:58 UTC
One has to win; if you duplicate an entry and change nothing, then how would it know which one you want? You have to change something.
Comment 3 postix 2025-08-27 19:22:32 UTC
(In reply to Nate Graham from comment #2)
> One has to win; 
Sure, if everything were identical.

> if you duplicate an entry and change nothing, then how would
> it know which one you want? You have to change something.

Name, description and comment differ and I took this as a starting point for further changes.

Which entry should win? The older one? A random one? Why should any entry in this case "win", if I as a user have deliberately created a new entry. I expect Kicker or Kickoff or any other start menu to simply displays the items, which are to be found in KMenuEdit.

Maybe the idea originates of hiding dups arising from random installations? That would kind of make sense.

I would already be happy if KMenuEdit told me "You got another entry X, which differs only in Y. It therefore may be hidden in the startmenu unless Z is also changed".
Comment 4 Nate Graham 2025-08-28 15:43:29 UTC
Actually what am I saying? That was nonsense.

Basically, when you edit anything in KMenuEdit, your edits take priority over the original.

If you want to create a new item that will be displayed alongside the original, you need to change the name of the underlying .desktop file to not be the same as the original file. That's ultimately what's used for identification. When two .desktop files have the same name, the one in ~/.local/share/applications (which is where KMenuEdit puts your edits) will win.

For the case where you intentionally duplicate an item in KMenuEdit such that it's clear your intention is to show two entries, we would perhaps have it prompt you for a new filename/ID for it, so it won't be de-duplicated.