Bug 466751

Summary: Window title stripped after dash
Product: [Plasma] plasmashell Reporter: Jannik
Component: Task Manager and Icons-Only Task Manager widgetsAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: nate
Priority: NOR    
Version First Reported In: master   
Target Milestone: 1.0   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Screenshot of the bug
Screenshot with "classic" task bar

Description Jannik 2023-03-02 23:43:16 UTC
SUMMARY
Opening an Virtual-Machine with virt-manager which has an dash "-" in the name, in the window preview all characters after and the dash itself are stripped from the name. The same is happening with an RDP-Connection opened with Remmina.

STEPS TO REPRODUCE
1.  Create a virt-manager vm with a dash in the name, or save an RDP-connection with a dash i the name in Remmina
2.  Open the vm or RDP-Connection
3.  Hover over the task icon and only the characters before the dash are shown

OBSERVED RESULT
Window title is stripped by dash

EXPECTED RESULT
Window title is fully visible

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 37
KDE Plasma Version: 5.27.2
KDE Frameworks Version: 5.103.0
Qt Version: 5.15.8

ADDITIONAL INFO
The effect only occures in the window-preview title. When I change the style to "classic" and disable grouping the window title is shown correctly in the taskbar but not in the preview.
Comment 1 Jannik 2023-03-02 23:44:00 UTC
Created attachment 156937 [details]
Screenshot of the bug
Comment 2 Jannik 2023-03-02 23:44:46 UTC
Created attachment 156938 [details]
Screenshot with "classic" task bar
Comment 3 Nate Graham 2023-03-06 22:46:03 UTC
The text after the dash is the app name. We strip it so it doesn't duplicate the text that appears in the tooltip right above it.

The issue here is that the window is changing its app name after launch. That's kinda sus. It shouldn't do that. Apps don't get different names at runtime. So this appears to be an app bug.