On 9/29/24 7:37 AM, Carlos E. R. wrote:
I don't have this script. I have "/etc/X11/xdm/Xsession" instead.
Yes, I can't stand openSUSE deciding to squirrel configs away under /usr/etc, that makes no sense. /etc is FHS and proper. Now you have configs split between /etc/ and /usr/etc/
# # Redirect errors to the standard user log files. # for errfile in "${HOME}/.xsession-errors" \ "${TMPDIR:-/tmp}/xerr-${USER}-${DISPLAY}" do ...
So if however you start your desktop invokes /usr/etc/X11/xdm/Xsession, the redirect of errors to ${HOME}/.xsession-errors occurs.
I see the script, but I don't really understand what it does, where are the errors actually written to. But I am using sddm. I suspect they go to syslog.
My understanding is that while when you start a process from the console, you have stderr output to the console on error. However, your user session/X session isn't started from the console, it's started by another process. So to capture any error on stderr from your session they redirect the output to a file, .xsession-errors in this case. (it is also captured in the journal for the most part as well) There is likely some of what X does whose errors are not captured in the journal which is likely why .xsession-errors has been deprecated for more than a decade, but is still with us. -- David C. Rankin, J.D.,P.E.