Bug 510083

Summary: Missing ampersands in Task Manager right-click menu for names of KCMs, Places, Recent Files, etc
Product: [Plasma] plasmashell Reporter: tempqd <variable_valuables761>
Component: Task Manager and Icons-Only Task Manager widgetsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: minor CC: kde, nate, notmart, qydwhotmail
Priority: HI    
Version First Reported In: 6.5.80   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 6.5.0
Sentry Crash Report:
Attachments: Screenshot of systemsettings task manager right click menu

Description tempqd 2025-09-30 05:02:32 UTC
Created attachment 185386 [details]
Screenshot of systemsettings task manager right click menu

SUMMARY
In the right-click menu of System Settings, Dophin, mpv, etc. in the Task Manager, the ampersands in entry names are missing.

Screenshot attached: "Date & Time" shows up as "Date  Time". To see it in Dolphin right click menu, you can e.g. rename "Home" to "Home & Foo"


openSUSE Krypton (git master KDE + Tumbleweed)
Comment 1 Marco Martin 2025-09-30 09:19:51 UTC
can reproduce
Comment 2 Bug Janitor Service 2025-09-30 14:54:21 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/3226
Comment 3 Marco Martin 2025-09-30 15:08:28 UTC
Git commit 432d42f92f706c5e4068ef03d7e87edd4009ef69 by Marco Martin.
Committed on 30/09/2025 at 14:54.
Pushed by mart into branch 'master'.

applet/taskmanager: replace & with && in the context menu actions

in the dynamic context menu actions of tasks the text is not controlled
by ourselves but can be anything which the app exposes.

If there is a string with an &, since this goes in a context menu,
the & will be removed (and considered a mnemonic hint) in order to
have them printed, && has to be used instead

M  +1    -1    applets/taskmanager/package/contents/ui/ContextMenu.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/432d42f92f706c5e4068ef03d7e87edd4009ef69
Comment 4 Marco Martin 2025-09-30 15:09:29 UTC
Git commit 732744eec268e861285f1b2acda800f713f90feb by Marco Martin.
Committed on 30/09/2025 at 15:09.
Pushed by mart into branch 'Plasma/6.5'.

applet/taskmanager: replace & with && in the context menu actions

in the dynamic context menu actions of tasks the text is not controlled
by ourselves but can be anything which the app exposes.

If there is a string with an &, since this goes in a context menu,
the & will be removed (and considered a mnemonic hint) in order to
have them printed, && has to be used instead


(cherry picked from commit 432d42f92f706c5e4068ef03d7e87edd4009ef69)

432d42f9 applet/taskmanager: replace & with && in the context menu actions

Co-authored-by: Marco Martin <notmart@gmail.com>

M  +1    -1    applets/taskmanager/package/contents/ui/ContextMenu.qml

https://invent.kde.org/plasma/plasma-desktop/-/commit/732744eec268e861285f1b2acda800f713f90feb