BadWindow error

openSUSE 13.1 64bit KDE

My home directory shows .xsession-errors as a zero byte file. But there is a .xsession-errors-:0 file that repeatedly reports…

X Error: BadWindow (invalid Window parameter) 3
  Major opcode: 20 (X_GetProperty)
  Resource id:  0x2e00015

Why is this error not being written to the .xsession-errors file, and is it something I should be concerned about?


Because it is being written to the “.xsession-errors-:0” file instead.

I’m not sure if this is a choice of the desktop, or comes from the script that starts the desktop.

And no, there’s no reason for concern.

A note on how it works. Some process (probably a script), early in the startup of your session redirects “stderr” to a file. Then everything else in your desktop just inherits that “stderr” file descriptor. The usual assumption is that nobody actually reads that unless they are investigating a particular problem.

Actually this is set in KDM’s configuration file, /usr/share/kde4/config/kdm/kdmrc:

# The file (relative to $HOME) to redirect the session output to. The
# following character pairs are replaced:
# - %d -> current display
# - %u -> current user
# - %r -> empty at first. See below.
# - %% -> a single %
# When the constructed filename cannot be used safely and the specification
# contains %<stuff>r, other names will be tried - this time expanding %<stuff>r
# to <stuff> followed by a random number.
# Default is ".xsession-errors"

As you can see here, the number behind the ‘-’ (e.g. :0) depicts the current display, so if you would login as a second user in a separate X session, the messages would go to ~/.xsession-errors-:1 instead.

And stdout gets redirected to that file as well.