emulate sh -c 'source /etc/profile'
if systemctl -q is-active graphical.target && [[ ! $DISPLAY && "$(tty)" = "/dev/tty1" ]]; then
exec startx
fi