You are not logged in.
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
I forgot to mention, i have autologin set up
Offline
"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
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
Read the last link in seth's sig.
Offline
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
Thanks a ton, i wasnt sourcing the files in /etc/X11/xinit/xinitrc.d/*
marking this as solved
Offline