You are not logged in.

#1 2018-12-12 08:36:23

Digwer
Member
Registered: 2017-01-07
Posts: 10

XDG_VTNR enviroment variable is being set on pseudo terminal in tmux

The problem: when I connect to PC1 via ssh and run tmux, I get:

/usr/lib/Xorg.wrap: Only console users are allowed to run the X server

Obviously, it tries to start X server.
This is being started by .bash_profile script from wiki

if [[ ! $DISPLAY && $XDG_VTNR -eq 1 ]]; then
		exec startx
fi

The interesting part: before running tmux on PC1 there is no XDG_VTNR variable in environment (as expected).
Deleted the "exec startx" line from .bash_profile and started tmux - there is XDG_VTNR=1 (not expected).

Does anyone know, where I should continue debugging? Or does anyone else encountered this problem?

Thank you.

Offline

Board footer

Powered by FluxBB