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

qdbus services do not exist?

Tags: None
(comma "," separated)
alavarre
Registered Member
Posts
5
Karma
0
OS

qdbus services do not exist?

Tue Aug 08, 2017 4:45 pm
I'm under Linux Mint 18.

I'm delving into qdbus tutorials: all say I should be able to list a bunch of services with "qdbus" from a terminal. It runs but only returns org.freedesktop.DBus, none of the org.kde services:
Code: Select all
    root@Spectre ~ # qdbus
    :1.10
    :1.12
    org.freedesktop.DBus


I'm trying to figure out how to switch between Activities in a script. Theoretically,
Code: Select all
qdbus org.kde.kactivitymanagerd /ActivityManager/Activities ListActivities

should give a list of Activity IDs, but I get:
Code: Select all
    root@Spectre ~ # qdbus org.kde.kactivitymanagerd /ActivityManager/Activities ListActivities
    Service 'org.kde.kactivitymanagerd' does not exist.

so I'm kind of stuck. All help appreciated.

Thanks in advance.
Andy
User avatar
david_edmundson
KDE Developer
Posts
359
Karma
1
OS

Re: qdbus services do not exist?

Tue Aug 08, 2017 4:52 pm
root@Spectre ~ # qdbus


root?

Is that where your KDE services are?
alavarre
Registered Member
Posts
5
Karma
0
OS
Thanks, I have tried both as root and as user, the results are the same:
Code: Select all
andy@Spectre / $ qdbus org.kde.kactivitymanagerd /ActivityManager/Activities ListActivities
Service 'org.kde.kactivitymanagerd' does not exist.


I ASS-U-ME that using root short circuits possible permission conflicts...

However, now that you have inspired me, I find:
Code: Select all
qdbus org.kde.ActivityManager

DOES work—no "d" on Activity Manager...

and further,
Code: Select all
andy@Spectre / $ qdbus org.kde.*

does indeed give a long list.

So, thanks for the inspiration: [This] problem solved... :-)

Now on to the next!
User avatar
david_edmundson
KDE Developer
Posts
359
Karma
1
OS

Re: qdbus services do not exist?

Tue Aug 08, 2017 8:09 pm
Every user gets their own DBus session. (plus there's a separate global "system" bus)

Use qdbusviewer, it'll make your life 10x faster.


Bookmarks



Who is online

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