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.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值