nerdexam
CompTIA

LX0-104 · Question #271

On a system running the K Display Manager, when is the /etc/kde4/kdm/Xreset script automatically executed?

The correct answer is B. When a user's X session exists. The /etc/kde4/kdm/Xreset script is automatically executed when a user's graphical X session terminates, allowing for cleanup tasks.

User Interfaces and Desktops

Question

On a system running the K Display Manager, when is the /etc/kde4/kdm/Xreset script automatically executed?

Options

  • AWhen KDM starts
  • BWhen a user's X session exists
  • CWhen KDM crashes
  • DWhen X is restarted
  • EWhen X crashes

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    87% (20)
  • E
    9% (2)

Why each option

The `/etc/kde4/kdm/Xreset` script is automatically executed when a user's graphical X session terminates, allowing for cleanup tasks.

AWhen KDM starts

The `Xsetup` script is typically executed when the KDM starts an X server, not the `Xreset` script.

BWhen a user's X session existsCorrect

The `Xreset` script in KDM (or other display managers) is designed to run after a user logs out and their X session ends. Its purpose is to perform any necessary cleanup, reset permissions, or restore system states before the next session starts.

CWhen KDM crashes

KDM crashing is an unexpected failure, and the `Xreset` script is for planned session termination, not for error handling.

DWhen X is restarted

`Xreset` runs after a user's session ends, not specifically when the underlying X server is restarted, although restarting X might implicitly end sessions.

EWhen X crashes

An X crash is an unplanned event, and `Xreset` is part of the normal session termination process, not an emergency handler.

Concept tested: KDM Display Manager X session lifecycle

Source: https://man7.org/linux/man-pages/man1/xdm.1.html

Topics

#KDM#display manager#X session#startup scripts

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice