You are not logged in.

#1 2017-03-29 19:19:32

jab2870
Member
Registered: 2017-03-20
Posts: 20

Gnome Keyring not working

Hi All,

I have arch installed arch on a new laptop with i3 as the window manager and no desktop environment.  Everything is working as I would like it to except for gnome keyring.  I have it installed and had the following in my .xinitrc file:

eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh)
export GNOME_KEYRING_CONTROL GNOME_KEYRING_PID GPG_AGENT_INFO SSH_AUTH_SOCK

This didn't work so after doing some Googling, somebody suggested adding it to my .bashrc file.  I did that and I now get the following message after logging in: `couldn't access control socket /run/user/1000/keyring/control no such file or directory`.

However,

ls -lah /run/user/1000/keyring/control

gives me the following:

srwxr-xr-x 1 jonathan jonathan 0 Mar 29 19:06 /run/user/1000/keyring/control=

Unless I am mistaken, there is a file there.

Based on recommendations from the arch wiki article on gnome keyring, i installed seahorse to see if that worked.  There were no keying entries in the left panel.  Tried adding one and got an error:

Couldn't add Keyring
No such secret collection at path: /

I'm afraid now, I am out of ideas.  Thanks n advance for any help.

Offline

#2 2017-04-04 05:55:15

PipeItToDevNull
Member
Registered: 2017-04-04
Posts: 2

Re: Gnome Keyring not working

I am having the same issue, and hoping for an answer as well

Offline

#3 2017-04-04 06:02:21

PipeItToDevNull
Member
Registered: 2017-04-04
Posts: 2

Re: Gnome Keyring not working

jab2870 wrote:

Hi All,

I have arch installed arch on a new laptop with i3 as the window manager and no desktop environment.  Everything is working as I would like it to except for gnome keyring.  I have it installed and had the following in my .xinitrc file:

eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh)
export GNOME_KEYRING_CONTROL GNOME_KEYRING_PID GPG_AGENT_INFO SSH_AUTH_SOCK

This didn't work so after doing some Googling, somebody suggested adding it to my .bashrc file.  I did that and I now get the following message after logging in: `couldn't access control socket /run/user/1000/keyring/control no such file or directory`.

However,

ls -lah /run/user/1000/keyring/control

gives me the following:

srwxr-xr-x 1 jonathan jonathan 0 Mar 29 19:06 /run/user/1000/keyring/control=

Unless I am mistaken, there is a file there.

Based on recommendations from the arch wiki article on gnome keyring, i installed seahorse to see if that worked.  There were no keying entries in the left panel.  Tried adding one and got an error:

Couldn't add Keyring
No such secret collection at path: /

I'm afraid now, I am out of ideas.  Thanks n advance for any help.

OP, I was able to find a solution by modifying my

.xinitrc
#!/bin/bash

eval $(/usr/bin/gnome-keyring-daemon --start --components=gpg,pkcs11,secrets,ssh)
export $(gnome-keyring-daemon --start --components=pkcs11,secrets,ssh,gpg)
dbus-update-activation-environment --systemd DISPLAY


exec xrdb .Xresources & i3

Last edited by PipeItToDevNull (2017-04-04 06:03:04)

Offline

#4 2017-04-06 16:21:24

jab2870
Member
Registered: 2017-03-20
Posts: 20

Re: Gnome Keyring not working

Thanks, that has fixed it.  Where did you find that answer?

Offline

#5 2021-09-09 08:56:01

pinsl
Member
Registered: 2016-02-07
Posts: 7

Re: Gnome Keyring not working

Running

dbus-update-activation-environment --systemd DISPLAY

also fixed it for me.

Last edited by pinsl (2021-09-09 08:56:44)

Offline

#6 2021-09-09 15:32:35

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,418

Re: Gnome Keyring not working

Closing this old thread.

The only reason you have to manually invoke this is because you do not setup your .xinitrc as reccommended, see https://wiki.archlinux.org/title/Xinit#xinitrc for the proper general practice.

Online

Board footer

Powered by FluxBB