天天看点

Dbus集成调试问题

1,connectFailed:Connection Error=Using X11 for dbus-daemon autolaunch was disabled at compile time\, set your DBUS_SESSION_BUS_ADDRESS instead

Soltuion:

export DBUS_SESSION_BUS_ADDRESS="unix:path=/var/run/dbus/system_bus_socket"

2,Connection "\:1.9" is not allowed to own the service "XXXXXX" due to security policies in the configuration file

Solution: 

 <!-- Holes must be punched in service configuration files for

         name ownership and sending method calls -->

    <allow own="*"/>

https://stackoverflow.com/questions/4560877/dbus-bus-request-name-connections-are-not-allowed-to-own-the-service

https://blog.csdn.net/shanzhizi/article/details/7712729

https://www.linuxquestions.org/questions/linux-software-2/dbus-problem-505442/?__cf_chl_jschl_tk__=17fa98909dc2a8d2587da85cc0d142063314b47e-1612146813-0-AUvFzj8mPA04E-EbznVVSj7--YDjc9ZP3rHnI7RlqZY8KgjGnFWzynbMj9m2aSNt4Rz8fMd8Cu0mqhm3CYjaEFnnfeHY8ouP18KcHsLxxFGnelIdtgoQJXp9vn-s4ksfg9nDtj0tOdV5myu5a2igXYON5vFKGwN-gn8xrXD_Cd1F_lIZttV6gWAumFhT4MA6wZNx8GMFyR0OwkeAXYr7GEvBfCnZhZpnxLbaJrwPMQJ9920qFs7bCv0bsse6lM8hWvLmPbanQVh5mWR6JNRjxlFLpp8RrbjpjOV9-CLktYznNUcS8WrQdml7FgXbVqcRcFCvO_y7ZmyPy--wDghp7uU5rRHn5vtGquJkVNEEodY_wcc_2rMyh4aDXHyEzxyu_W2yuDuqDNcfD0ipLENf9rwhIkUzg1WwTUCp1OVyhVLc2NKR6KjOdZuhDUfDe5K6Lw

/etc/dbus-1/system.conf:

For local configuration changes, create a file

system-local.conf or files matching system.d/*.conf in the same directory

as this one, with a <busconfig> element containing configuration directives.

These directives can override D-Bus or OS defaults.

继续阅读