Reply to topic

Activity Switching in 4.10 gone?! Please help!

frisil
Registered Member
Posts
13
Karma
0
OS
Hi,
I just upgraded to 4.10 and my activity switcher script does not work anymore. I used to do the following (worked in 4.9 and before):

to get the IDs for my activities
Code: Select all
qdbus org.kde.kactivitymanagerd /ActivityManager ListActivities


to go to a specific activity:
Code: Select all
qdbus org.kde.kactivitymanagerd /ActivityManager SetCurrentActivity <Activity-ID>


Now both seem to be gone, I get the following errors:
Code: Select all
qdbus org.kde.kactivitymanagerd /ActivityManager ListActivities
Error: org.freedesktop.DBus.Error.UnknownMethod
No such method 'ListActivities' in any interface at object path '/ActivityManager' (signature '')


Code: Select all
qdbus org.kde.kglobalaccel /component/plasma_desktop invokeShortcut "Next Activity"

still works, but that's not what I want, I want to go to a specific activity.

This makes 4.10 useless for me unless I figure out a new command that makes me go to a specific activity via terminal command! Please, can anyone help?

Just to make it clear, I know about the other (graphical/by klicking/widget/whatever) ways of switching activities, but as I said, that's not what I want. I want to use shell commands, so I can invoke them by mouse gestures, desktop icons and in bash scripts. Thanks for any help in advance!
User avatar bcooksley
Administrator
Posts
18586
Karma
83
OS
The API you are trying to use appears to have been moved to /ActivityManager/Activities in the D-Bus interface.
Code: Select all
qdbus org.kde.kactivitymanagerd /ActivityManager/Activities ListActivities
qdbus org.kde.kactivitymanagerd /ActivityManager/Activities SetCurrentActivity <activity-id>


System Settings and Device Actions KCM maintainer
Image
frisil
Registered Member
Posts
13
Karma
0
OS
Thanks a billion! :)

Problem solved

 
Reply to topic

Bookmarks



Who is online

Registered users: Alexa [Bot], anli, Baidu [Spider], Bing [Bot], binro, Exabot [Bot], Ganitzsh, garthecho, Google [Bot], google01103, ken300, koriun, lazyit, Majestic-12 [Bot], Nerdfest, netpalantir, SeaJey, SecretCode, sfepa, Sogou [Bot], vascobasque, W3C [Validator], Yahoo [Bot]