From the review of 2026-11-12's commits (the points left open in 1b524eb94): Sound behind McdeSys (ext/src/mcde/AGENTS.md, philosophy 3): libMcdeSound named /usr/bin/paplay, aplay, /usr/pkg/bin/audioplay and ffplay itself and waited for the player, so mcdesoundd heard nothing while a sound played. mcde_sys_sound_play (sound.c) takes paplay where a PulseAudio server answers, else the backend's player (mcde_sys_player: audioplay(1) on NetBSD, aplay(1) on Linux), started in a grandchild: no wait, no zombie. Measured against a private PulseAudio with a null sink: OpenFolder and TerminalBell sent back to back play at the same time (pactl list short sink-inputs: two streams), mcdesoundd -selftest PASS, a second mcdesoundd says "a server runs already". The /usr/pkg/dt fallbacks of Sound.c and dtphoto.c are gone (CDE_INSTALLATION_TOP is the prefix); McdeSoundFile's dead buffer is gone; mcdesoundd ends the 20 bytes of a message itself; Sound.h is installed (include/Makefile.am, PLIST). Linking: LIBMCDESOUND and LIBTERM carry the libraries below them (configure.ac). Debian's libtool hands no indirect library to the linker, which then took the installed, older libMcdeSys through libMcdeSound's RUNPATH and failed (dtterm: undefined mcde_sys_sound_play). dtwm plug and play (WmMcdeDisplays.c, written 2026-11-11, uncommitted and not compiling): the ClientData fields it uses, McdeHeadsChanged (Xinerama's list read anew, its XineramaQueryScreens memory given back with XFree), McdePanelMonitorsChanged (the panel centres on the main display), the RandR events taken in WmMain.c's loop, McdeDisplaysInit after the EWMH setup, the file in Makefile.am. Measured on Xvfb: dtwm starts with it, the check at login leaves the outputs as they were (xrandr before and after: screen connected 1024x700+0+0), dtwm runs on. Plugging itself was not measured: Xvfb cannot change its outputs, and Xorg's dummy driver refuses a user who is not at the console. Smaller: dttoolbox ignores SIGCHLD from the start (set after the first fork it missed the first child) and lost its test hook /tmp/dttoolbox-no-home; dtfile plays OpenFolder once per folder (FileMgr.c), not twice; dtpaint's unused variable; dttoolbox frees XGetAtomName's string without a cast-away const. AGENTS.md describes McdeSound, mcdesoundd, dtphoto, dtpaint, dttoolbox and the plug and play; the WAV tones' maker was not kept, which it says. The two stale citations (53b852bb2, 945da0f4c) are corrected in git notes. Built with make mcde-host, exit 0 (build/logs/mcde-host-2026-11-13q.log). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
51 lines
1.6 KiB
Makefile
51 lines
1.6 KiB
Makefile
MAINTAINERCLEANFILES = Makefile.in
|
|
|
|
bin_PROGRAMS = mcdesoundd
|
|
|
|
mcdesoundd_CPPFLAGS = -I$(top_srcdir)/include \
|
|
-DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\"
|
|
|
|
mcdesoundd_LDADD = $(LIBMCDESOUND) \
|
|
$(DTCLIENTLIBS) $(XTOOLLIB)
|
|
|
|
if SOLARIS
|
|
mcdesoundd_LDADD += -lintl
|
|
endif
|
|
|
|
mcdesoundd_SOURCES = mcdesoundd.c
|
|
|
|
# the first theme: the reference's event names, MCDE's own short tones
|
|
soundsdir = $(CDE_INSTALLATION_TOP)/share/sounds/themes/Camouflage
|
|
sounds_DATA = theme.ss \
|
|
sounds/launch.wav sounds/terminal_bell.wav sounds/start.wav sounds/end.wav sounds/error.wav \
|
|
sounds/warning.wav sounds/beep.wav sounds/open_folder.wav \
|
|
sounds/drop_move.wav sounds/drop_copy.wav sounds/remove.wav \
|
|
sounds/remove_to_dumpster.wav sounds/desk_switch.wav \
|
|
sounds/iconify.wav sounds/deiconify.wav sounds/new_mail.wav \
|
|
sounds/print_files.wav sounds/search_hit.wav sounds/search_miss.wav \
|
|
sounds/clock_chime_hour.wav
|
|
|
|
# the second theme, for the theme choice in the settings
|
|
basedir = $(CDE_INSTALLATION_TOP)/share/sounds/themes/Base
|
|
base_DATA = themes/Base/theme.ss \
|
|
themes/Base/launch.wav \
|
|
themes/Base/start.wav \
|
|
themes/Base/end.wav \
|
|
themes/Base/error.wav \
|
|
themes/Base/warning.wav \
|
|
themes/Base/beep.wav \
|
|
themes/Base/open_folder.wav \
|
|
themes/Base/drop_move.wav \
|
|
themes/Base/drop_copy.wav \
|
|
themes/Base/remove.wav \
|
|
themes/Base/remove_to_dumpster.wav \
|
|
themes/Base/desk_switch.wav \
|
|
themes/Base/iconify.wav \
|
|
themes/Base/deiconify.wav \
|
|
themes/Base/new_mail.wav \
|
|
themes/Base/print_files.wav \
|
|
themes/Base/search_hit.wav \
|
|
themes/Base/search_miss.wav \
|
|
themes/Base/clock_chime_hour.wav \
|
|
themes/Base/terminal_bell.wav
|