Summary: | Window titles are cut off if they contain a hyphen | ||
---|---|---|---|
Product: | [Plasma] plasmashell | Reporter: | Alex Lowe <lengau> |
Component: | Task Manager and Icons-Only Task Manager | Assignee: | Plasma Bugs List <plasma-bugs> |
Status: | RESOLVED FIXED | ||
Severity: | minor | CC: | nate, niccolo, qydwhotmail |
Priority: | NOR | ||
Version: | 5.27.8 | ||
Target Milestone: | 1.0 | ||
Platform: | Kubuntu | ||
OS: | Linux | ||
Latest Commit: | https://invent.kde.org/plasma/plasma-desktop/-/commit/dbc0d28dd5adcf2cb36fe44fabef7ecdb7b1d52f | Version Fixed In: | 6.0 |
Sentry Crash Report: |
Description
Alex Lowe
2023-11-17 15:58:41 UTC
Heh, we use the hyphen to cut of the app name, but it looks like we're inappropriately looking for the first one rather than the last one. A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/1861 (In reply to Nate Graham from comment #1) > Heh, we use the hyphen to cut of the app name, but it looks like we're > inappropriately looking for the first one rather than the last one. We do look for the last one, it's just that Pychar uses – instead of — or - (they're all different). I added that dash to the list and, just for sure, also checked for whitespace before it. Git commit dbc0d28dd5adcf2cb36fe44fabef7ecdb7b1d52f by Niccolò Venerandi. Committed on 25/11/2023 at 13:23. Pushed by niccolove into branch 'master'. In Task Manager tooltips, only match dash if it follows a space Since some applications might have a project with a dash in the name, such as "python-Project", we only match "-" in the tooltip of Task Manager (to extract the project name) if there's a space before it. We also start tracking for –, which is a different type of dash compared to -. M +2 -2 applets/taskmanager/package/contents/ui/ToolTipInstance.qml https://invent.kde.org/plasma/plasma-desktop/-/commit/dbc0d28dd5adcf2cb36fe44fabef7ecdb7b1d52f |