You are not logged in.
I have a strange problem, this file is executed by lxdm after user login (via PostLogin hook):
#!/bin/bash
gnome-screensaver &
eval $(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)
export SSH_AUTH_SOCK
Yet, more often than not I need to kill gnome-keyring-daemon and gnome-screensaver to make them work.
What can possibly be the cause?
I checked the journalctl -b log and all seems normal, what should I look for? Any insight?
Offline
There must be some race condition I am totally unaware of. Just adding a sleep 3s before the executions solved the problem.
Offline
Related issue https://bbs.archlinux.org/viewtopic.php?id=196068. See comments about SSH_AUTH_SOCK there.
Offline
Sounds dead-on. That would explain why waiting 3 seconds solves the problem, LXDM is too fast executing the hook and SSH_AUTH_SOCK still points to /tmp.
Offline
I tried adding this code, but it does not work... How to detect the env variable is ready?
while [[ "$SSH_AUTH_SOCK" =~ "/tmp" ]] ;do
sleep 1
done
Offline