Auto run startx when login on *nix

If you do not use any windows manager and use xinitrc only.

Add below line to your local shell prompt config to auto run startx instead of type it manually every time.

For sh, edit .shrc:

if [ -z $DISPLAY ]; then
  exec startx
fi

Comments