You are not logged in.

#1 2021-01-04 06:39:21

Simaryp
Member
Registered: 2018-04-28
Posts: 153

Gnome-Keyring in sway and GDM

I am setting up sway at the moment and I am facing some struggles with gnome-keyring which I want to use for ssh.

The wiki states that using GDM the keyring should be started and unlocked on login. However, if I want to ssh I am prompted for my keyphrase instead of keyring popup.

I also copied the two files to autostart as mentioned in the wiki, but beside filling my journalctl even more nothing changed.

In journalctl I see  'gdm-password][1182]: gkr-pam: gnome-keyring-daemon started properly and unlocked keyring' so in principle it should be there.

Offline

#2 2021-01-04 15:30:59

equalizer876
Member
Registered: 2018-09-11
Posts: 79

Re: Gnome-Keyring in sway and GDM

In Sway the only place for autostart is the Sway config. You have to exec_always some binaries. To get all things running there are several things to autostart. One of them should be the polkit gnome (?), keyring stuff etc.. Just google for some i3 or sway configs.

Last edited by equalizer876 (2021-01-04 15:44:32)

Offline

#3 2021-01-04 15:37:15

Simaryp
Member
Registered: 2018-04-28
Posts: 153

Re: Gnome-Keyring in sway and GDM

I think I found a reason. The arch wiki recommends to put the following to .bash_profile

if [ -n "$DESKTOP_SESSION" ];then
    eval $(gnome-keyring-daemon --start)
    export SSH_AUTH_SOCK
fi

But when I log in via DM the .bash_profile isn't sourced. I entered it manually in a terminal and that did the trick.
Should I place it then in .bashrc?

Offline

#4 2021-01-04 15:43:51

equalizer876
Member
Registered: 2018-09-11
Posts: 79

Re: Gnome-Keyring in sway and GDM

Read my post again.

Offline

#5 2021-01-04 15:57:42

Simaryp
Member
Registered: 2018-04-28
Posts: 153

Re: Gnome-Keyring in sway and GDM

You mean I should place it in sway/config?
The keyring is already started by gdm on login.

Last edited by Simaryp (2021-01-04 15:58:19)

Offline

#6 2021-01-04 16:32:15

equalizer876
Member
Registered: 2018-09-11
Posts: 79

Re: Gnome-Keyring in sway and GDM

Simaryp wrote:

You mean I should place it in sway/config?

Yes. Take some references of

https://github.com/rbnis/dotfiles/blob/ … way/config
https://github.com/snakedye/wlr_config/ … way/config

Offline

#7 2021-01-04 19:47:41

Simaryp
Member
Registered: 2018-04-28
Posts: 153

Re: Gnome-Keyring in sway and GDM

That worked. I appended:

exec eval $(gnome-keyring-daemon --start)
exec export SSH_AUTH_SOCK

Offline

Board footer

Powered by FluxBB