Hello Přemek.

> Hi,
> 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.
> 
> 
> [1] https://github.com/hypfvieh/dbus-java

Wow, it even supports OSGi: https://github.com/hypfvieh/dbus-java/issues/32 - 
e.g. it should be possible to include that artifact into NetBeans Runtime 
Container just like [Mylyn bundles](https://github.com/apache/netbeans/tree/
25d228fa47e950c777e4115c092ba51f594ca39d/ide/o.eclipse.mylyn.commons.core).

Licenses seem fine. It would be great to just a single code that would work on 
Gnome and KDE. Approach #3 seems fine, if you can get it working.

-jt

We already have some Unix Socket library:
https://github.com/apache/netbeans/tree/
3c3f8dffec27689949a32bcbe8edca84127e42c9/ide/libs.c.kohlschutter.junixsocket - 
it would be good to use just a single library for accessing Unix sockets. 

> 
> 
> ---------- Forwarded message ---------
> From: Laszlo Kishalmi <[email protected]>
> Date: Tue, Mar 23, 2021 at 10:04 PM
> Subject: Re: master password
> To: <[email protected]>
> 
> 
> Well, if it is Gnome. Our JNA support Gnome 2 API only which is no
> longer available in recent Ubuntu (and probably other) distributions.
> There was an option to install that library 18.04, but that is no
> longer available.
> 
> On 3/23/21 2:00 PM, Eric Bresie wrote:
> 
> Sounded like somethings were reinstalled ..but did some of it not get
> reinstalled fully or is missing?
> 
> 
> FINE [org.netbeans.modules.keyring.gnome.GnomeProvider]
> java.lang.UnsatisfiedLinkError: Unable to load library 'gnome-keyring':
> libgnome-keyring.so: cannot open shared object file: No such file or
> directory libgnome-keyring.so: cannot open shared object file: No such file
> or directory Native library (linux-x86-64/libgnome-keyring.so) not found in
> resource path
> (/mnt/common/netbeans-12.3/netbeans/platform/lib/boot.jar:/mnt/common/netbe
> ans-12.3/netbeans/platform/lib/org-openide-modules.jar:/mnt/common/netbeans-
> 12.3/netbeans/platform/lib/org-openide-util.jar:/mnt/common/netbeans-12.3/ne
> tbeans/platform/lib/org-openide-util-lookup.jar:/mnt/common/netbeans-12.3/ne
> tbeans/platform/lib/org-openide-util-ui.jar)
> 
> 
> FINE [org.netbeans.modules.keyring.win32.Win32Protect]: not running on
> Windows FINE [org.netbeans.modules.keyring.utils.Utils]: chmod go-r
> /home/cenbe/.netbeans/12.3/config/Preferences/org/netbeans/modules/keyring.p
> roperties WARNING
> [org.netbeans.modules.keyring.fallback.MasterPasswordEncryption]: Falling
> back to master password encryption; add
> -J-Dorg.netbeans.modules.keyring.level=0 to netbeans.conf to see why
> native keyrings could not be loaded
> FINE [org.netbeans.modules.keyring.utils.Utils]: no such file to
> chmod:
> /home/cenbe/.netbeans/12.3/config/Preferences/org/netbeans/modules/keyring/
> general.properties
> 
> Eric Bresie
> [email protected]
> 
> On March 22, 2021 at 2:18:03 PM CDT, Glenn Holmer
> <[email protected]> wrote:
> On 3/22/21 12:45 PM, Neil C Smith wrote:
> 
> On Mon, 22 Mar 2021 at 17:05, Boris Heithecker <[email protected]>
> wrote:
> 
> Unfortunately, no one (including myself) has yet found time to
> implement a simple switch, or system property to switch off either
> implementation on Linux.
> 
> 
> There is -J-Dnetbeans.keyring.no.native=true ? Still at least shows
> the non-native one though? UI to disable entirely would be on my own
> papercuts list.
> 
> 
> Added that to netbeans.conf, restarted, did a git fetch, and got the
> master password dialog :) Checked the log file and saw this:
> 
> WARNING
> [org.netbeans.modules.keyring.fallback.MasterPasswordEncryption]:
> Falling back to master password encryption; add
> -J-Dorg.netbeans.modules.keyring.level=0 to netbeans.conf to see why
> native keyrings could not be loaded
> 
> Added that, got the dialog again, and saw this in the log:
> 
> https://www.lyonlabs.org/temp/master-password-log.txt
> 
> So it looks like there's something to the idea that he's looking for
> some KDE stuff and can't find it (see my other message: no kwallet
> installed, running a fresh install of Debian Buster w/MATE).
> 
> I remember that this used to get a lot of complaints years ago, but it's
> been quite a while since I last saw that dialog.
> 
> --
> Glenn Holmer (Linux registered user #16682)
> "After the vintage season came the aftermath -- and Cenbe."
> cenbe.vcf7 bytes
> ---------------------------------------------------------------------
> 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
> 
> 
> [...]
> 
> On Mon, Mar 22, 2021 at 5:03 PM Glenn Holmer <[email protected]> 
wrote:
> > I recently switched from KDE to MATE (on Linux) and now I'm frequently
> > seeing the "enter master password" dialog. Mr Google has offered various
> > exotic manual methods to make it go away, but is there a way from within
> > NetBeans?
> 
> ---------------------------------------------------------------------
> 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





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