Bug 468007

Summary: Opening emacs launcher new application instance instead of replacing launcher icon
Product: [I don't know] kde Reporter: t.soernes
Component: generalAssignee: Unassigned bugs mailing-list <unassigned-bugs>
Status: RESOLVED DOWNSTREAM    
Severity: normal CC: nate
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description t.soernes 2023-03-31 17:09:17 UTC
SUMMARY
When I open emacs (icon #3) it opens a new instance (icon #5 on the taskbar),  instead of the launcher icon turning into the application instance https://i.imgur.com/E1RbdGK.png


STEPS TO REPRODUCE
1. 
2. 
3. 

OBSERVED RESULT


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: Fedora 37
(available in About System)
KDE Plasma Version: 5.27.3
KDE Frameworks Version: 
Qt Version: 

ADDITIONAL INFORMATION
Comment 1 t.soernes 2023-03-31 17:10:30 UTC
When I open emacs (icon #3 on the taskbar in the picture below) it opens a new instance (icon #5 on the taskbar), instead of the launcher icon turning into the application instance https://i.imgur.com/E1RbdGK.png
Comment 2 t.soernes 2023-03-31 17:11:12 UTC
*** Bug 468008 has been marked as a duplicate of this bug. ***
Comment 3 Nate Graham 2023-04-04 18:47:28 UTC
This happens because the Task Manager fails to map the open Emacs window to the desktop file used for its launcher. Perhaps it changes its desktop file or its NET_WM_STRING property after being launched, which can cause this to break. Ultimately this is a bug in Emacs itself; I'd recommend reporting it to that app's developer. Thanks!