Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I start an X application from a terminal, the error messages go to the terminal. If I start them from a GUI, where do the error messages go, or alternatively how are they dealt with?

share|improve this question
up vote 3 down vote accepted

Display managers such as xdm & gdm usually capture stderr from the processes they start and log it to a file such as /var/log/xdm.log or /var/log/gdm/:0.log. That includes the output from the X server being started.

Once your session starts, it may redirect output from the session processes to a file such as ~/.xsession-errors as tante pointed out in his answer.

share|improve this answer

Usually all generic X errors (and those of some applications) go to the file ~/.xsession-errors.

share|improve this answer

They go to whatever terminal the X server was started from. If you boot to command line and then start X, you can see them by hopping back to that VT (hit Ctrl-Alt-F1). If you boot directly to X, I'm not sure where the messages show up by default; it may vary by distro.

share|improve this answer
The question explicitly mentioned login from a GUI session manager. – Adam Byrtek Oct 1 '10 at 11:56

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.