keyring location is not documented and differs between installations

Bug #1707945 reported by H.-Dirk Schmitt
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-keyring (Ubuntu)
New
Undecided
Unassigned

Bug Description

I found keyrings on different locations.
Sometime below ~/.gnome2/keyrings, sometimes below ~/.local/share/keyrings/, sometimes in both locations.

The README.Debian is only mentioning: .gnome2/keyrings
The man page for gnome-keyring-daemon doesn't document any location.

The problem for me is that I want to consolidates of the login.keyring between several installations.

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: gnome-keyring 3.18.3-0ubuntu2
ProcVersionSignature: Ubuntu 4.10.0-28.32~16.04.2-generic 4.10.17
Uname: Linux 4.10.0-28-generic x86_64
ApportVersion: 2.20.1-0ubuntu2.10
Architecture: amd64
Date: Tue Aug 1 17:32:26 2017
SourcePackage: gnome-keyring
UpgradeStatus: No upgrade log present (probably fresh install)
upstart.gnome-keyring-ssh.log: grep: /home/hs/.config/autostart/gnome-keyring-ssh.desktop: Datei oder Verzeichnis nicht gefunden

Revision history for this message
H.-Dirk Schmitt (dirk-computer42) wrote :
summary: - keyring location is not documented and differs beetween installations
+ keyring location is not documented and differs between installations
Revision history for this message
H.-Dirk Schmitt (dirk-computer42) wrote :

The undocumented location is implemented in the file pkcs11/gkm/gkm-util.c

gkm_util_locate_keyrings_directory (void)
{
[…]
        old_directory = g_build_filename (g_get_home_dir (), ".gnome2", "keyrings", NULL);
        new_directory = g_build_filename (g_get_user_data_dir (), "keyrings", NULL);

        /*
         * If the new XDG directory doesn't exist, and the old one does,
         * use the old one, otherwise create/use the new XDG location.
         */

[…]}

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.