On Sun Mar 22 13:03:19 2026 +0000, Alfred Agrell wrote:
True, but libdbus [has a couple of global variables](https://dbus.freedesktop.org/doc/api/html/group__DBusThreads.html#details) as well. Worst case, mountmgr only uses dbus from a single thread, so omitting the thread init is safe, and so does winebth - but if mountmgr and winebth are used simultaneously by different threads, things blow up. I don't know about you, but personally, I would quite prefer not debugging that. I don't see mountmgr and winebth being loaded in the same process but yes, if it protects global variables in addition to the connection then this looks like the right thing to do since a dhcp request could arrive while the device manager handles dbus events.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/10420#note_133240