You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been having some issues trying to get started with this library. I apologise in advance if I'm just missing something simple here.
From what I've seen, in previous version you would create a connection using DBusConnection conn = DBusConnection.getConnection(DBusConnection.SYSTEM); or similar. This now obviously gives me a warning as it's deprecated since version 4.1. The change log states "Deprecated DBusConnection.newConnection/DBusConnection.getConnection, please use DBusConnectionBuilder" but I have no indication of how this is meant to be implemented.
Looking through your documentation on DBusConnection it still says to use the deprecated method. If you could provide any help on this issue or just on using your library in general that would be greatly appreciated. Thanks in advance :)
The text was updated successfully, but these errors were encountered:
For your case you can exchange DBusConnection conn = DBusConnection.getConnection(DBusConnection.SYSTEM); with DBusConnectionBuilder.forSystemBus().build(). That's all.
I've been having some issues trying to get started with this library. I apologise in advance if I'm just missing something simple here.
From what I've seen, in previous version you would create a connection using
DBusConnection conn = DBusConnection.getConnection(DBusConnection.SYSTEM);
or similar. This now obviously gives me a warning as it's deprecated since version 4.1. The change log states "Deprecated DBusConnection.newConnection/DBusConnection.getConnection, please use DBusConnectionBuilder" but I have no indication of how this is meant to be implemented.Looking through your documentation on DBusConnection it still says to use the deprecated method. If you could provide any help on this issue or just on using your library in general that would be greatly appreciated. Thanks in advance :)
The text was updated successfully, but these errors were encountered: