17

So I was looking into why a program was getting rid of my background, and the author of the program said to post .xsession-errors and many people did. Then my next question was: What is .xsession-errors? A google search reveals many results but nothing explaining what it is.

What I know so far:

  • It's some kind of error log. I can't figure out what it's related too (ubuntu itself? programs?)
  • I have one and it seems like all Ubuntu systems have it, though I cannot verify.
Err
  • 890
  • 2
  • 11
  • 32

2 Answers2

17

Linux graphical interfaces (such as GNOME) provide a way to run applications by clicking on icons instead of running them manually on the command-line. However, by doing so, output from the command-line is lost - especially the error output (STDERR).

To deal with this, some display managers (such as GDM) pipe the error output to ~/.xsession-errors, which can then be used for debugging purposes. Note that since all applications launched this way dump to the same log, it can get quite large and difficult to find specific messages.

Update: Per the documentation:

The ~/.xsession-errors X session log file has been deprecated and is no longer used.

It has been replaced by the systemd journal (journalctl command).

Arnon Weinberg
  • 871
  • 8
  • 20
4

It's the error log produced by your X windows system (which the Ubuntu GUI is built on top of).

Basically it's quite a low level error log for X11.

John3136
  • 28,809
  • 4
  • 51
  • 69
  • Quick question. I just looked through the `.xsession-errors` file, and there are SO many errors. However, my desktop works seemingly fine. Should I be worried about any of these errors? – Rohan Apr 05 '16 at 04:43
  • @Rohan No way to know without seeing the errors. Suggest you ask a new question and include some of the issues. – John3136 Apr 05 '16 at 05:12