dbus通信

调试SIM7600CE模块使用dbus通信运行dbus monitor时遇到错误

Failed to open connection to session bus: Using X11 for dbus-daemon autolaunch was disabled at compile time, set your DBUS_SESSION_BUS_ADDRESS instead

在开发板上执行export DBUS_SESSION_BUS_ADDRESS=“unix:path=/var/run/dbus/system_bus_socket”

为了使上述命令开机即执行,将其添加到环境变量中
在开发板rootfs/etc/profile中添加 export DBUS_SESSION_BUS_ADDRESS=“unix:path=/var/run/dbus/system_bus_socket”
如果/etc/profile 没有执行,则开机测试之前 执行source /etc/profile

你可能感兴趣的:(004-Linux)