Hi, Am Sonntag, den 28.03.2021, 01:47 +0100 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. >
if there is still interest, I did an MVP for binding libsecret. I don't know if the synchronous API is enough for the keyring API, but that is what is bound here: https://github.com/matthiasblaesing/JNA-Demos/tree/master/LibSecret Greetings Matthias --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
