I've been running my Pi headless for quite a few months now, and a few days ago I decided to plug in a monitor, mouse and keyboard, partly because I wanted to have a play with the Arduino IDE.
Booted to user credential entry, I logged in as pi, which is the user I use.
Ran "startx". Then lots of messages ending in this:
xinit: connection to X server lost
waiting for X server to shut down Server terminated successfully (0). Closing log file.
And nothing happened. However if I create another user and run startx, or run sudo startx, it works fine.
I have plenty of space on my SD card.
Any help much appreciated, thanks in advance