If you have a line like
exec startx
in ~/.bash_profile then you could change it to
[ "$XDG_SESSION_TYPE" = "x11" ] && exec startx
BTW, welcome to the forum!
If you have a line like
exec startx
in ~/.bash_profile then you could change it to
[ "$XDG_SESSION_TYPE" = "x11" ] && exec startx
BTW, welcome to the forum!