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

Using DBus for adding new functions to IrKick?

Tags: None
(comma "," separated)
theresonant
Registered Member
Posts
21
Karma
0
OS
Hello all!

I'm trying to create a small Python app that will provide some DBus methods. My goal is to have those methods called by IrKick when I press a button on my remote. So far, my little application creates a test method, which works when tested in QDBusViewer, but the IrKick wizard won't list it when choosing "I wish to manually select a function from a running program". Obviously, my program is running.

Do I have to follow a certain pattern of DBus objects and methods in my application? I noticed that all the apps recognized by the IrKick wizard have, say, a MainApplication object that contains common methods. Is it a requirement? Where can I find a list with these specifications, if there is one?

Cheers!
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
The /MainApplication path provides the name of the application, etc. therefore it may be required.

Creating a KApplication instance should be sufficient enough to create it.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
theresonant
Registered Member
Posts
21
Karma
0
OS
Thanks, I think I should try to find what I'm looking for in PyKDE instead of PyQt and DBus separately.


Bookmarks



Who is online

Registered users: abc72656, Bing [Bot], daret, Google [Bot], Sogou [Bot], Yahoo [Bot]