I have an application which creates an x-session, the problem I'm having is with ssh-agent.
Lets say I have created a unix socket, and then create x-session(in this session ssh-agent is launched). So my question is:
Is it possible to launch x-session and have my socket path set as
SSH_AUTH_SOCK for ssh-agent?
I have tried setting my socket path in
SSH_AUTH_SOCK in x-session creation command, manually checked and new
init process contains my sockets path. But for some reason when I launch terminal(inside this session) and
echo $SSH_AUTH_SOCK some other path is displayed. Seems like some other process is overwriting it.
Is there any way to predefine
$SSH_AUTH_SOCK before launching x-session?