Bug 458946

Summary: While editing the application menu and adding desktop files a "-2" is appended to the application name
Product: [Applications] kmenuedit Reporter: adec2011.ac
Component: generalAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: 5.25.5   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description adec2011.ac 2022-09-10 08:12:57 UTC
STEPS TO REPRODUCE
1. Edit applications from the desktop
2. drag and drop a desktop file to the kde menu editor
3. 

OBSERVED RESULT

desktop file is added but with -2 appended to the name

EXPECTED RESULT

name is added correctly without "-2"
SOFTWARE/OS VERSIONS
Operating System: KDE neon Testing Edition
KDE Plasma Version: 5.25.5
KDE Frameworks Version: 5.98.0
Qt Version: 5.15.6
Kernel Version: 5.19.0-8.1-liquorix-amd64 (64-bit)
Graphics Platform: X11

ADDITIONAL INFORMATION
Comment 1 Nate Graham 2022-09-13 18:07:42 UTC
That means the menu structure already has an entry with that name. It automatically renamed the new thing you added to prevent a name collision.