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.
Question
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)- A2% (1)
- B86% (49)
- C2% (1)
- D4% (2)
- E7% (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.
The `Xreset` script runs *after* sessions, not when KDM itself starts; `Xsetup` or `Xstartup` scripts are executed at KDM start or before session launch.
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.
KDM crashing is an abnormal termination and typically doesn't trigger standard cleanup scripts like `Xreset`, which is part of the normal session lifecycle.
Restarting X or the display manager typically involves different scripts for setup or pre-session actions, not `Xreset` which is for post-session cleanup.
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
Community Discussion
No community discussion yet for this question.