This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Activity Switching in 4.10 gone?! Please help!

Tags: None
(comma "," separated)
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
19765
Karma
87
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>


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
frisil
Registered Member
Posts
13
Karma
0
OS
Thanks a billion! :)

Problem solved


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Yahoo [Bot]