PDA

View Full Version : How to see .xsession-errors ?



rishard
2nd November 2017, 12:04 PM
Hi everybody,
please tell me, how can I enable this log?


$ cat ~/.xsession-errors
cat: /home/alex/.xsession-errors: No such file or directory



$ uname -a
Linux localhost.localdomain 4.13.9-200.fc26.x86_64 #1 SMP Mon Oct 23 13:52:45 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux


Thank you for you answer.

dswaner
2nd November 2017, 08:45 PM
I believe you would get .xsession-errors automatically if you were running X - though it is possible that you might need to install rsyslog, if you didn't want to use journalctl. If you are running Wayland you would not have an .xsession-errors.

HaydnH
3rd November 2017, 01:57 PM
Fedora doesn't use ~/.xsession by default, if you install "xorg-x11-xinit-session" and select "Custom script" at the GDM login screen it will though.

Having said that, if you've got an issue that you're trying to diagnose and you don't have that installed then I doubt that would help... what's the issue you've got?

nsnbm
4th November 2017, 05:13 AM
The lxde spin uses ~/.xsession-errors whose origin is in the xorg-x11-xinit package. The chief logging place for errors in X is /var/log/Xorg.0.log which notes it's log markings for error in the first 15 or so lines of that file. Some installations may put that Xorg.0.log file in /home/user/.local/share/xorg/.

rockdoctor
6th November 2017, 01:52 AM
Mate spin apparently uses ~.xsession-errors, too.