You are not logged in.
now that minecraft started migrating mojang accounts into microsoft ones, minecraft-launcher one of the problem that people are having is about the launcher from aur asking for password everytime you opens it, that can be solved by installing gnome-keyring, that's ok, pretty straight forward.
for me it's working, it remembers my login and password, but only until I reboot my machine, that the next time after a reboot that I open the minecraft-launcher, it asks for microsoft login and password and gnome-keyring password again.
what I tried so far was having the keyring password as same as my user password and modifying the /etc/pam.d/login. as mentioned here.
also I'm not using a display manager, so I'm starting the gnome-keyring as:
xinitrc:
eval $(/usr/bin/gnome-keyring-daemon --start --components=secrets)
export GNOME_KEYRING_CONTROL GNOME_KEYRING_PID
is something that I'm doing wrong? or this is the expected behavior?
Last edited by ltsdw (2021-09-28 17:13:21)
Offline
Expected behavior, you need to pass your gnome-keyring credentials "at some point" and if that point is when minecraft-launcher launches then that's then.
You can do this when you log on, by following: https://wiki.archlinux.org/title/GNOME/Keyring#PAM_step
Apparently I can't read. Where did you add the keyring lines exactly? I'm assuming they'd have to be after sourcing the systemd login session and passing the DBUS to the user session.
Last edited by V1del (2021-09-28 16:46:11)
Offline
I added them before the dwm line that starts the wm.
edit:
oh, wait, you talking about the pam, it's exactly like the example from the wiki.
#%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
session optional pam_gnome_keyring.so auto_start
Last edited by ltsdw (2021-09-28 16:51:43)
Offline
ok, so I tried removing the lines from xinitrc and letting only the lines from pam, now it's not asking for password anymore.
Offline