godbus / dbus

Native Go bindings for D-Bus
BSD 2-Clause "Simplified" License
959 stars 222 forks source link

Allow creating connections without authentication #355

Closed itstarsun closed 1 year ago

guelfey commented 1 year ago

This is already possible using e.g. NewConn or SessionBusPrivate, which explicitly do not do call Hello or Auth internally at startup.

itstarsun commented 1 year ago

A Conn returned by NewConn still has to call the Auth method manually, otherwise the inWorker will never be called. https://github.com/godbus/dbus/blob/e523abc905595cf17fb0001a7d77eaaddfaa216d/auth.go#L118