Bug 438532

Summary: [Wayland] Clicking an icon opens the previously-launched application
Product: [Plasma] plasmashell Reporter: AK-47 <chkboom>
Component: Application Launcher (Kickoff)Assignee: David Edmundson <kde>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bharadwaj.raju777, guimarcalsilva, hellofriend, madLyfe, mikel5764, plasma-bugs
Priority: NOR Keywords: wayland
Version: 5.22.0   
Target Milestone: 1.0   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: stderr of "plasmashell --replace"
stdout+stderr with plasmashell --replace

Description AK-47 2021-06-13 06:03:18 UTC
SUMMARY
When clicking on an icon in either the Kickoff menu or the launcher, instead of opening the requested application, it will either open nothing or open the program that was previously launched.

STEPS TO REPRODUCE
1. Log into the Plasma Wayland session.
2. Click on any icon in the Kickoff menu or the launcher.
3. Click on any other icon in the Kick-off menu or launcher.

OBSERVED RESULT

If it's the first time an icon was clicked after log-in (ie. Step 2), nothing happens.

If it is not the first time an icon was clicked after log-in (ie. Step 3), the previously opened application launches instead of the one the icon is meant to launch.

EXPECTED RESULT
The icon should launch the application that has been requested, not the one that was launched before (or nothing).

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora Rawhide (FC35)
(available in About System)
KDE Plasma Version: 5.22.0
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION
Only happens with the Wayland session. Appears to be normal under X11.
Tested with fresh user profile, so 100% default settings after updating from 5.21.90 to 5.22.0.
Comment 1 David Edmundson 2021-06-13 11:39:40 UTC
Can you include stdout/stderr of plasmashell with this happening.

(either plasmashell --replace from a terminal) or journalctl

Are you using any non-standard input devices?
Comment 2 AK-47 2021-06-13 12:29:24 UTC
Created attachment 139283 [details]
stderr of "plasmashell --replace"

Nothing non-standard, just the touch pad which KDE thinks is just a mouse (and doesn't see it as a touch pad).

It seems the last update to Fedora has made it go away, something to do with KIO perhaps.

Anyway here's the stderr (there was nothing in stdout) in case it reveals something else.
Comment 3 hellofriend 2021-06-14 18:49:09 UTC
I have the same problem with Kde Neon 5.22

Operating System: KDE neon 5.22
KDE Plasma Version: 5.22.0
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.3
Kernel Version: 5.8.0-55-generic (64-bit)
Graphics Platform: Wayland
Processors: 8 × AMD Ryzen 7 4700U with Radeon Graphics
Memory: 11,1 GiB of RAM
Graphics Processor: AMD RENOIR
Comment 4 hellofriend 2021-06-14 18:50:04 UTC
This is my pastebin with trace:
https://pastebin.ubuntu.com/p/PHHXvKpGkJ/
Comment 5 kinghat 2021-06-15 02:41:32 UTC
same issue when opening apps with krunner:

Operating System: KDE neon 5.22
KDE Plasma Version: 5.22.0
KDE Frameworks Version: 5.83.0
Qt Version: 5.15.3
Kernel Version: 5.8.0-55-generic (64-bit)
Graphics Platform: Wayland
Processors: 4 × Intel® Core™ i7-5600U CPU @ 2.60GHz
Memory: 11.6 GiB of RAM
Graphics Processor: Mesa Intel® HD Graphics 5500
Comment 6 guimarcalsilva 2021-06-15 22:20:16 UTC
I can confirm I'm also being affected by this bug on Wayland.
Comment 7 hellofriend 2021-06-15 22:28:54 UTC

*** This bug has been marked as a duplicate of bug 438313 ***
Comment 8 hellofriend 2021-06-15 22:29:28 UTC
(In reply to guimarcalsilva from comment #6)
> I can confirm I'm also being affected by this bug on Wayland.

Resolved but not released
Comment 9 guimarcalsilva 2021-06-15 22:29:54 UTC
Created attachment 139355 [details]
stdout+stderr with plasmashell --replace

I used the command plasmashell --replace >std 2>&1 to output stderr and stdout. I clicked on the Dolphin icon twice to be able to open it and then I killed the plasmashell process.