Files
mcde/programs/mcdesoundd
lotherk 37d566dac5 mcdesoundd: the session's Start and End tones (t0043)
dtsession starts mcdesoundd at login (config/0075.mcdesoundd) and the daemon
dies with the session; the two theme events Start and End were never played.
Now the daemon plays Start as soon as it owns _MCDE_SOUND_SERVER, and End in
an X I/O error handler: at logout dtlogin resets the X server, the daemon's
connection dies there, it forks the player (which outlives it) and exits.
Both go through the theme (MCDE_SOUND_THEME), not a fixed file; the path does
not need X, so it works in the I/O error handler.

Measured (Xvfb :86, installed Base theme, PULSE_SINK on a private null sink in
the running PulseAudio -- no sound on the real sink):
- start: "mcdesoundd: theme .../themes/Base" and
  "mcdesoundd: Start -> .../themes/Base/start.wav (player)".
- kill the Xvfb (the server reset at logout):
  "mcdesoundd: End -> .../themes/Base/end.wav (player)", and the daemon is
  gone (only the session's own daemon remains).
make mcde-linux MCDE_DIRS="install programs/mcdesoundd" exit=0;
MCDE_DIRS=plist "mcde-plist-check: ok".

The AX_* events of the same task (AccessX and the Keyboard pane) are not in
this commit; t0043 stays open for them.
2026-11-16 14:36:09 +00:00
..