Bug 502295 - Error adding "/" in submenu name, but no error reported by application
Summary: Error adding "/" in submenu name, but no error reported by application
Status: CONFIRMED
Alias: None
Product: kmenuedit
Classification: Applications
Component: general (other bugs)
Version First Reported In: 6.3.3
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-01 17:25 UTC by Pat Wright
Modified: 2025-04-01 22:12 UTC (History)
3 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 Pat Wright 2025-04-01 17:25:03 UTC
SUMMARY
When adding a "/" in a submenu name, the entry is either not saved or saves in an erroneous state. The application does not give a warning that the character is disallowed, the help doc does not mention this limitation, and pressing the save button, the application acts exactly as it does with a valid save. 

STEPS TO REPRODUCE
1. Create a new submenu with a "/" in the title, such as "A/V". Add items from other menus. 
2a. Do not save, exit the program, and save via the "Save Menu Changes?" prompt.
3a. View menu entry in menu launcher, note incorrect name.
4a. Re-enter menu editor and attempt to change submenu name, note changes do not save.
2b. Save via the toolbar save button.
3b. Exit application, open menu launcher, note submenu is missing.
4b. Re-enter menu editor, note submenu is missing.

OBSERVED RESULT
New submenu either does not exist or saves with only the portion of name before "/", and saves in a state where the name and icon cannot be altered.

EXPECTED RESULT
Either: menu entry should save properly; or if the "/" character is disallowed, a warning or error message should appear to notify the user. 

SOFTWARE/OS VERSIONS
Operating System: Manjaro Linux 
KDE Plasma Version: 6.3.3
KDE Frameworks Version: 6.12.0
Qt Version: 6.8.2
Kernel Version: 6.12.20-2-MANJARO (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i3-7100 CPU @ 3.90GHz
Memory: 7.7 GiB of RAM
Graphics Processor: Intel® HD Graphics 630

ADDITIONAL INFORMATION
I'm not sure if my issue will be clear from the above, so here it is in story form: I was attempting to name a new submenu "A/V". When saving via the "Save Menu Changes?" prompt upon closing the window, the submenu instead saves as "A", but the name and icon cannot be edited upon re-entry into menu editor, although applications can still be moved in and out. When saving via the toolbar "save" button and then closing the application, the submenu does not populate at all on the menu launcher and is gone the next time I enter menu editor. I was able to delete the submenu and create a new named "AV", so I have resolved my use case, but the application bug is still present. 

This is my first issue created. If there's anything I should do differently in filing please don't hesitate to let me know.
Comment 1 TraceyC 2025-04-01 19:17:44 UTC
I can reproduce this on git-master and Plasma 6.3.3

Some additional detail from git-master
After step 3a, clicking on Properties reveals that the dialog is missing information on all tabs

For instance, on the General tab

Bugged submenu entry:
Filename is ".directory"
- Type: Unknown
- Opens With: No registered file type
- Location: A
- Size: 0 B
- Created, Modified, Accessed are not shown

Regular entry 9ex Development)
Filename is df5-development.directory
- Type: Desktop entry
- Opens With: Kate
- Location: $path/desktop-directories
- Size, Created, Modified, Accessed have good data