Hi Matthias and all,

Initially it seemed to me that using dbus to implement KeyringProvider for
new versions of Gnome would be easier for me but it turned out that the
library I wanted to use had many dependencies, some of them using native
libraries and I had some issues adding them to the project.
I'm not very familiar with JNA but now when Matthias did the main work it
was easy putting it all together even for someone like me :) I hope I
didn't mess up. I put some comments in the PR. I'm not sure what else to
test or what is the process now.
Here is the PR: https://github.com/apache/netbeans/pull/2906

Thanks again Matthias and Laszlo and Jaroslav for help with this.

Regards
Premek



On Sat, Apr 10, 2021 at 11:13 PM Matthias Bläsing <[email protected]>
wrote:

> 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
>
>
>
>

Reply via email to