You are not logged in.
Pages: 1
Hello,
As the Wiki says, I have added:
if [ -z "$DISPLAY" ] && [ "$XDG_VTNR" = 1 ]; then
exec startx
fiinto ~/.bash_profile.
It works well but can someone explain what is the signification of
-z "$DISPLAY"and
"$XDG_VTNR" = 1Thanks.
Offline
The -z flag checks whether the $DISPLAY variable has a length of zero and XDG_VTNR contains the number of the virtual terminal in which the GUI session will be run.
Offline
Maritim answer is technically correct, but doesn't explain what the conditions have for effect.
-z "$DISPLAY"
If X has already been started, $DISPLAY will have a length > zero. starting a second X instance usually fails then.
"$XDG_VTNR" = 1
Only if you are logging in to TTY1 will startx be run .
This allows to use TTY2 and higher for other purposes and allows to run cli commands from tty as user.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
Pages: 1