| The Following User Says Thank You to b0unc3 For This Useful Post: | ||
|
|
2010-03-10
, 11:09
|
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#2
|
Hello,
I would like to know which is the best way to run a script (my own script) on a specific dbus event.
It requires me to make a daemon ?
|
|
2010-03-10
, 11:49
|
|
Posts: 318 |
Thanked: 735 times |
Joined on Oct 2009
|
#3
|
with python scripts , you could use the QT/GTK dbus wrappers to listen to the dbus signals , to perform what you want perhaps.
or you could write a simple daemon to do the same
| The Following User Says Thank You to b0unc3 For This Useful Post: | ||
|
|
2010-03-10
, 11:55
|
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#4
|
Yes, but to make my app listen on dbus signals requires that my app has to be (always) running and this is not what I want. I only need my application up and running only on a specific dbus event and I hope I could do this without writing a daemon.
Regards
|
|
2010-03-10
, 12:08
|
|
Posts: 318 |
Thanked: 735 times |
Joined on Oct 2009
|
#5
|
somebody has to listen to the dbus event , no ?
and to add that the app/script will be in an almost idle state until the signal is recieved.

|
|
2010-03-10
, 12:11
|
|
|
Posts: 754 |
Thanked: 630 times |
Joined on Sep 2009
@ London
|
#6
|
But, I'm wondering, is there someone else who listen to dbus event? maybe a system daemon, and use this directly would be better (or maybe I'm simply wrong).


|
|
2010-03-10
, 12:14
|
|
Posts: 318 |
Thanked: 735 times |
Joined on Oct 2009
|
#7
|
No
Dont worry you wont load the system by listening to the dbus.Thats the whole purpose of having dbus so apps can communicate with other apps/middleware, add yours as well
let me know if you find something else
| The Following User Says Thank You to b0unc3 For This Useful Post: | ||
|
|
2010-03-10
, 12:22
|
|
Posts: 1,224 |
Thanked: 1,763 times |
Joined on Jul 2007
|
#8
|
| The Following User Says Thank You to Matan For This Useful Post: | ||
I would like to know which is the best way to run a script (my own script) on a specific dbus event.
It requires me to make a daemon ?