nerdexam
Linux_Foundation

LFCS · 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 executed by the K Display Manager after a user's graphical X session has terminated.

Submitted by emma.c· Apr 18, 2026Operation of Running Systems

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

(57 responses)
  • A
    2% (1)
  • B
    86% (49)
  • C
    2% (1)
  • D
    4% (2)
  • E
    7% (4)

Why each option

The /etc/kde4/kdm/Xreset script is executed by the K Display Manager after a user's graphical X session has terminated.

AWhen KDM starts

The `Xreset` script runs *after* sessions, not when KDM itself starts; `Xsetup` or `Xstartup` scripts are executed at KDM start or before session launch.

BWhen a user's X session existsCorrect

The KDM `Xreset` script is specifically designed to perform cleanup tasks after an X session finishes. It runs post-session to revert any changes made by the session or clean up temporary files, ensuring the system is ready for the next user or session.

CWhen KDM crashes

KDM crashing is an abnormal termination and typically doesn't trigger standard cleanup scripts like `Xreset`, which is part of the normal session lifecycle.

DWhen X is restarted

Restarting X or the display manager typically involves different scripts for setup or pre-session actions, not `Xreset` which is for post-session cleanup.

EWhen X crashes

An X crash is an unexpected event that might prevent `Xreset` from executing cleanly, as it's intended for graceful session termination.

Concept tested: KDM X session lifecycle scripts

Source: https://manpages.debian.org/testing/kdm/kdm.1.en.html

Topics

#Display Manager#KDM#X Session#System scripts

Community Discussion

No community discussion yet for this question.

Full LFCS Practice