Bug 417853

Summary: Activity shortcuts stopped working
Product: [Plasma] kactivitymanagerd Reporter: Christian Muehlhaeuser <muesli>
Component: generalAssignee: Ivan Čukić <ivan.cukic>
Status: RESOLVED DUPLICATE    
Severity: normal CC: kde, plasma-bugs, shibo501c, till2.schaefer, wbauer1
Priority: NOR    
Version: 5.18.0   
Target Milestone: ---   
Platform: Arch Linux   
OS: Linux   
Latest Commit: Version Fixed In:

Description Christian Muehlhaeuser 2020-02-19 00:10:18 UTC
SUMMARY

The global shortcuts I set up for activites stopped working in a recent release. They configured keys still show up in the configuration, fwiw.
Comment 1 David Edmundson 2020-02-19 00:18:20 UTC
Do other shortcuts eg alt+tab work correctly?

Can you still see your activities correctly in the activites pager?
Comment 2 Christian Muehlhaeuser 2020-02-19 01:22:52 UTC
All other shortcuts aren't affected. Activities work just fine and i can also walk through them with Meta-Tab. Only the dynamically created shortcuts for each individual activity are broken (System Settings -> Shortcuts -> Global Shortcuts -> Other Shortcuts -> Activity Manager -> Switch to activity "xyz")
Comment 3 Bug Janitor Service 2020-03-05 04:33:14 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Christian Muehlhaeuser 2020-03-05 07:21:53 UTC
Uhm, I've already provided the info. Changing status.
Comment 5 ssebo 2020-03-16 07:49:23 UTC
(In reply to Christian Muehlhaeuser from comment #4)
> Uhm, I've already provided the info. Changing status.

I found a workaround by setup a KDE Custom Shotcut, fill the following command in Action field:  nohup kactivities-cli --list-activities | awk '$3==ACTIVITY_NAME { print $2}' | xargs kactivities-cli --set-current-activity
Comment 6 Till Schäfer 2020-03-18 12:07:52 UTC
Possibly related to Bug 417495
Comment 7 Wolfgang Bauer 2020-05-30 15:14:03 UTC
Same problem here, tried with Plasma 5.18.5 and 5.18.90.

But I noticed that if I kill kglobalaccel5 and restart it, they suddenly do start to work.

I renamed /usr/bin/kglobalaccel5 and replaced it with a script that does "sleep 5" and then runs the renamed executable, and it works fine here now right after login.

So this seems to be a race condition in the login process.
Presumably kactivitymanagerd needs to be run before kglobalaccess5 for the shortcuts to work, but that's not guaranteed to happen during login.

Also confirmed by killing both and then:
- Running kactivitymanagerd first and kglobalaccel5 afterwards => shortcuts work
- Running kglobalaccel5 first and kactivitymanagerd afterwards => shortcuts do not work
Comment 8 Wolfgang Bauer 2021-01-18 11:24:53 UTC
This works fine meanwhile with Plasma 5.20.5.

And it also starts to work with 5.18.5 when I add the fixes for bug#374575 (in particular the one for kactivitymanaged).
I'll mark it as duplicate therefore.

*** This bug has been marked as a duplicate of bug 374575 ***