Opened 10 years ago
Last modified 3 months ago
#10926 new enhancement
Support MATE keyring with native password manager
Reported by: | stanton | Owned by: | bastiK |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Plugin native_password_manager | Version: | |
Keywords: | template_report | Cc: | stanton |
Description
What steps will reproduce the problem?
- Install Ubuntu MATE 14.10.
- Download and install JOSM an Native Password Manager plugin.
- Start JOSM
What is the expected result?
I would expect the plugin to work with MATE's password manager.
What happens instead?
Upon start, I get the following message:
No native password manager could be found! Depending on your Operating System / Distribution, you may have to create a default keyring / wallet first.
Please provide any additional information below. Attach a screenshot if possible.
I suspect this is because MATE support would need to be added. Since MATE is a fork of GNOME 2 and GNOME Keyring is supported, the code should be mostly there and can be reused – there is probably little difference between MATE and GNOME apart from identifiers.
Repository Root: http://josm.openstreetmap.de/svn Build-Date: 2014-12-09 17:17:36 Last Changed Author: Don-vip Revision: 7777 Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Relative URL: ^/trunk URL: http://josm.openstreetmap.de/svn/trunk Last Changed Date: 2014-12-09 18:14:49 +0100 (Tue, 09 Dec 2014) Last Changed Rev: 7777 Identification: JOSM/1.5 (7777 en) Linux Ubuntu 14.10 Memory Usage: 377 MB / 857 MB (251 MB allocated, but free) Java version: 1.7.0_65, Oracle Corporation, OpenJDK 64-Bit Server VM Java package: openjdk-7-jre:amd64-7u71-2.5.3-0ubuntu1 Plugins: - DirectUpload (30267) - InfoMode (30737) - PicLayer (30762) - geotools (30762) - jts (30762) - mirrored_download (30762) - native_password_manager (30739) - notes (v0.9.5) - osmarender (30738) - photo_geotagging (30803) - reverter (30737) - turnrestrictions (30762) - utilsplugin2 (30762) - waypoint_search (30695)
Attachments (0)
Change History (6)
comment:1 by , 10 years ago
comment:2 by , 10 years ago
I'll happily supply one, once I find out where the fault lies :-)
Turns out Ubuntu MATE 14.10 (which I use) uses gnome-keyring, so in theory it should work already. Looking at the source code, I found that the code looks for a library which *should* be in libgnome-keyring-dev
, but installing that library doesn't fix the issue.
The "Passwords and Keys" app shows me some passwords (including an SMB password), thus it seems I have a default keyring.
Do I need to install extra packages or make some extra settings to make this work? I'd happily document it on the wiki if I knew how to get it to work...
follow-up: 4 comment:3 by , 10 years ago
Just looked into JOSM settings, there is one setting named plugins.native-password-manager.agent
, which is unset. Where and how does the plugin detect which password manager to use? Does that code by any chance query the desktop environment?
comment:4 by , 10 years ago
Replying to stanton:
Just looked into JOSM settings, there is one setting named
plugins.native-password-manager.agent
, which is unset. Where and how does the plugin detect which password manager to use?
In the java function GnomeProvider.enabled()
, which calls a native function gnome_keyring_is_available()
from libgnome-keyring
. It will be interesting to know at what line exactly it fails.
Does that code by any chance query the desktop environment?
Nope.
comment:5 by , 10 years ago
I found the code and see it has a few calls to Log.fine()
. How do I get OpenJRE to display log messages of this level on the console? (Searched on the net and came up dry – on Android I'd know where to look, on the desktop I need some help...)
comment:6 by , 3 months ago
https://specifications.freedesktop.org/secret-service-spec/latest/ref-dbus-api.html should probably be used, if dbus calls are going to be done.
Patches welcome. :)