LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   When I use dbus-send, How can I get destination(program)'s information? (https://www.linuxquestions.org/questions/linux-software-2/when-i-use-dbus-send-how-can-i-get-destination-program-s-information-4175589394/)

Kim Gu 09-14-2016 05:37 AM

When I use dbus-send, How can I get destination(program)'s information?
 
Code:

dbus-send --print-reply --system --dest=org.hell.Disks \
        /org/hell/Disks org.hell.Disks.Mount \
        string:$my_device string:"" array:string:"ro"

in this situation...

How can I get DEST and STRING 's information?

Should I analyze the source code of destination program?

Ztcoracat 09-17-2016 11:27 AM

I think you have to use a command to get the destination information.

Quote:

dbus commands have four important elements: Destination, path, method, and message.
See the examples given on this page.
http://cheesehead-techblog.blogspot....resources.html

Quote:

Should I analyze the source code of destination program?
I've never tried it so I'm not sure.
It can't hurt to analyze it if anything it will give you more information than what you had.

There are a handful of dbus Tutorials online so you might want to look at them.
https://dbus.freedesktop.org/doc/dbus-tutorial.html
https://rm5248.com/d-bus-tutorial/

https://wiki.mumble.info/wiki/DBus
http://linux.die.net/man/1/dbus-launch

Good Luck:-;)


All times are GMT -5. The time now is 08:53 AM.