Closed zhanglongqi closed 1 year ago
Hello,
Sd-bus is not thread safe. Each thread has its own default bus.
The default bus is usually the user session bus NetworkManager is ran over the system bus.
To fix this sdbus.set_default_bus(sdbus.sd_bus_open_system())
should be ran after the thread starts.
it works. Thank you.
I will get error
DbusServiceUnknownError
if I run it in a child thread.