You are not logged in.
Pages: 1
i use automatic login to virtual console and my ~/.bash_profile looks like this:
# System settings before starting X
. $HOME/.bashrc
PATH="$HOME/bin:$HOME/.gem/ruby/2.2.0/bin:$PATH"
# colored debug for gcc (perl script, aur package)
if [ -d "/usr/lib/colorgcc/bin" ] ; then
PATH="/usr/lib/colorgcc/bin:$PATH"
fi
if [[ -z $DISPLAY && $XDG_VTNR -eq 1 ]]
then
killall -q ssh-agent
echo -n "ssh-agent: "
eval "$(ssh-agent)"
ssh-add (...)
fi
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx
i just noticed that the XDG_VTNR variable is empty after logging out from X.
On other ttys this does not happen, only on 1.
So if I exit tty1, I get re-logged in automatically, but X does not get restarted automatically.
I'm not unhappy with this, but I'm confused and I'd like to understand:
why is XDG_VTNR unset/empty after logout (only on tty1)?
Offline
Offline
ahh, that was quick. thanks.
since trilby's description matches my problem 100%, i'll continue the discussion there.
Offline
Pages: 1