Bug 414459

Summary: Distinguishing between different Wine applications?
Product: [Unmaintained] lattedock Reporter: Qualimer Judith <qualimerjudith>
Component: plasmoidAssignee: Michail Vourlakos <mvourlakos>
Status: RESOLVED NOT A BUG    
Severity: wishlist    
Priority: NOR    
Version First Reported In: 0.9.4   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Qualimer Judith 2019-11-24 13:22:42 UTC
SUMMARY
At the moment, all Wine applications are considered under the same application (i.e. Wine), which as a result, means that Latte ends up grouping them together, despite the potential for some of them to be different applications entirely.

STEPS TO REPRODUCE
1. Ensure that the 'Group tasks of the same application' option is enabled
2. Launch two different instances of a Wine application
3. They should remain grouped under a single icon

OBSERVED RESULT
The result is as stated above - all Wine applications are grouped together regardless of actual relation. Latte is behaving as expected of course, since Wine is required for all of them to run. However...

EXPECTED RESULT
It would be nice if Latte were able to distinguish between different Wine applications, grouping them when necessary (e.g. if two instances of the same EXE were launched, they would be grouped, but a different EXE would be grouped into a new task) - a small QoL change that helps bring in line the behaviour of Wine applications to the norm.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.3.12/5.17.3
(available in About System)
KDE Plasma Version: 5.17.3
KDE Frameworks Version: 5.64.0
Qt Version: 5.13.2
Comment 1 Michail Vourlakos 2019-11-24 13:40:48 UTC
This is plasma libtaskmanager handling... If I remember correctly you need to create different desktop files for each wine application and for each one you need also to set properly the StartupWMClass value : https://userbase.kde.org/LatteDock/FAQ#My_launcher_and_its_window_are_not_associated_correctly_OR_my_launcher_is_using_a_low-resolution_icon.3F
Comment 2 Qualimer Judith 2019-11-25 03:43:40 UTC
(In reply to Michail Vourlakos from comment #1)
> This is plasma libtaskmanager handling... If I remember correctly you need
> to create different desktop files for each wine application and for each one
> you need also to set properly the StartupWMClass value :
> https://userbase.kde.org/LatteDock/
> FAQ#My_launcher_and_its_window_are_not_associated_correctly_OR_my_launcher_is
> _using_a_low-resolution_icon.3F

I see! That makes sense - modifying the StartupWMClass value does indeed cause Wine applications to be grouped properly. Thank you for pointing me in the correct direction.