Register a “Hello World” DBus service, object and method using Python
问题 I'm trying to export a DBus service named com.example.HelloWorld , with an object /com/example/HelloWorld , and method com.example.HelloWorld.SayHello that prints "hello, world" if the method is called using dbus-send --system --type=method_call --dest=com.example.HelloWorld /com/example/HelloWorld com.example.HelloWorld.SayHello So my question is how do you make a simple DBus service with a single method that prints "hello, world" (on its own stdout). 回答1: When using dbus-python the