You are not logged in.

#1 2021-11-10 20:52:01

Kartoffel0
Member
Registered: 2021-11-10
Posts: 4

[SOLVED] Issues with unlocking gnome keyring with startx

Im trying to get gnome keyring to unlock automatically and have followed the arch wiki guide on it, ive made my /etc/pam.d/login look like this

#%PAM-1.0

auth       required     pam_securetty.so
auth       requisite    pam_nologin.so
auth       include      system-local-login
auth       optional     pam_gnome_keyring.so
account    include      system-local-login
session    include      system-local-login
password   include      system-local-login
password   optional	pam_gnome_keyring.so
session    optional     pam_gnome_keyring.so auto_start

and ive added this to my xinitrc

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

However it isnt unlocking the keyring if i for example go into seahorse and hit the unlock key nothing happens.

Last edited by Kartoffel0 (2021-11-11 09:32:53)

Offline

#2 2021-11-10 21:05:54

Kartoffel0
Member
Registered: 2021-11-10
Posts: 4

Re: [SOLVED] Issues with unlocking gnome keyring with startx

I forgot to mention, i have autologin set up

Offline

#3 2021-11-10 22:38:06

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [SOLVED] Issues with unlocking gnome keyring with startx

"nothing happens"
Can you access the keyring in general, eg. using secret-tool?
Does your xinitrc also include the systemd scripts that import the session bus variable?

echo $DBUS_SESSION_BUS_ADDRESS

Offline

#4 2021-11-11 01:11:07

Kartoffel0
Member
Registered: 2021-11-10
Posts: 4

Re: [SOLVED] Issues with unlocking gnome keyring with startx

secret-tool doesnt seem to work,

doas secret-tool store --label='test' test test

returns

secret-tool: The connection is closed

which i assume is not the desired result.
i have now added

echo $DBUS_SESSION_BUS_ADDRESS

to the beginning of my xinitrc but no difference. Im not sure which systemd scripts you are talking about, i dont see them mentioned in the gnome-keyring arch wiki page apart from this snippet which seems unrelated as im not using gdm

Alternatively, if using GDM and LUKS, GDM can unlock your keyring if it matches your LUKS password. For this to work, you need to use the systemd init in your mkinitcpio.conf as well as the appropriate kernel parameters. See [1] for more details.

Offline

#5 2021-11-11 02:37:56

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [SOLVED] Issues with unlocking gnome keyring with startx

Read the last link in seth's sig.


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2021-11-11 07:18:23

seth
Member
Registered: 2012-09-03
Posts: 49,951

Re: [SOLVED] Issues with unlocking gnome keyring with startx

i have now added echo $DBUS_SESSION_BUS_ADDRESS to the beginning of my xinitrc

You're supposed to execute that and look at the value - it will otherwise do predictably nothing

Im not sure which systemd scripts you are talking about

See Jason's post…

Offline

#7 2021-11-11 09:31:16

Kartoffel0
Member
Registered: 2021-11-10
Posts: 4

Re: [SOLVED] Issues with unlocking gnome keyring with startx

Thanks a ton, i wasnt sourcing the files in /etc/X11/xinit/xinitrc.d/*
marking this as solved

Offline

Board footer

Powered by FluxBB