[Resend to mailinglist] Hi,
Am 28.03.2021 um 01:47 schrieb Přemysl Vyhnal:
I looked a bit into why keyring is not used on new versions of Gnome (see the email below), there is also Jira for it: NETBEANS-4150 - On Gnome 'gnome-keyring' library was used which is no longer present in new versions and is replaced by "libsecret". - libsecret calls the "Secret Service" API using D-Bus. - Secret Service should be supported by both gnome and kde desktops. Now we could 1) add a new KeyringProvider that would use libsecret using JNA - same like GnomeProvider currently uses gnome-keyring. 2) Or we could call the Secret Service D-Bus using dbus-send application (that should be installed on gnome desktops) - KWalletProvider is currently done that way using qdbus application 3) or we could call D-Bus "directly" from java probably using dbus-java [1] What would be the preferred way to do this? 3) looks the best to me but what are the rules about adding new dependencies? dbus-java is MIT and it depends on jnr-unixsocket which is Apache license.
I only had a quick look at libsecret and its simple API. If that API is enough for our usecase, It looks doable to bind it with JNA. We already ship JNA with the platform, so it would not introduce another dependency.
I admit, that I'm biased though, as I'm one of the JNA maintainers. Greetings Matthias --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org For additional commands, e-mail: dev-h...@netbeans.apache.org For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists