da98eef08ecfd2def238028e76ee840a4d04f1e9
3
Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
9fd4818051 |
MCDE: the review's open points -- sound through McdeSys, dtwm plug and play, the rest
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> |
||
|
|
0e81935ea0 |
MCDE: the bar after dtsession, its menus only for the focused program, a Network pane
Konrad, 2026-11-13: "panel fehlt, top leiste is lila", the network settings "zu rudimentaer, keine ip config, kein dns", the global menu only while a program that has one is in front. The bar (and the launcher, the drop-down terminal, the login items) came from Xsession.d, before dtsession had loaded the session's resources and the colour server: dtbar took *background from ~/.Xdefaults (#6e1e7d, the user's base16 theme; dtbar PID 1270788 started before dtsession 1270795). Restarting dtbar in the running session gave the palette's colours. Now dtsession runs sys.sessionetc -- the first of CDE_CONFIGURATION_TOP/config and CDE_INSTALLATION_TOP/config, as sys.session is found -- before the user's sessionetc (SmRestore.c, StartEtc); it sources config/sessionetc.d, where 0080.dtlaunch, 0085.dtdropdown, 0090.dtbar and 0095.loginitems moved. The bar takes colour set 5, the programs' background, not set 6 of a menu bar (Dtbar*secondaryColorSetId: 5; measured #c6b2a8 with Default.dp). dtwm publishes the focused client as _NET_ACTIVE_WINDOW (EWMH, WmEwmh.c SetNetActiveWindow from SetKeyboardFocus and where the focus is dropped); dtbar shows a program's menus only while the active window is the menus' owner, a dialog of it (WM_TRANSIENT_FOR) or a window of the same program (WM_CLIENT_LEADER). Measured on Xvfb with dtwm, dtbar, dtpad and xterm, clicking: dtpad -> its menus, xterm -> M only, dtpad -> its menus again. Network (dtsystemsettings/network.c, docs/reference/netconfig.txt): Show: Network Status (a light and a sentence per card, Configure...) or one card with the tabs TCP/IP (Using DHCP, with manual address, Manually, Off; address, mask, router, DHCP client ID, Renew DHCP Lease; IPv6), DNS (servers, search domains, what resolv.conf has now), Wi-Fi and Ethernet; the lock and Apply Now as Accounts. McdeSys mcde_sys_net_config, _configure, _renew (replacing mcde_sys_net_dhcp, which was declared and implemented nowhere): NetBSD one block per interface in dhcpcd.conf, as ifconfig.if(5) recommends, sysinst's static address in ifconfig.IF read and moved there, applied with dhcpcd -n IF (cross-compiled with the tree's x86_64--netbsd-gcc, not run); Linux the NetworkManager profile (nmcli). mcde_sys_interfaces took the last IPv4 address (the secondary one), now the first. Measured on this host, read only: the pane shows the three cards, 172.20.10.2/28 by DHCP, router 172.20.10.1, DNS 1.1.1.1, MAC, MTU 1500; test_sysinfo (new checks: settings read, 300.1.2.3 refused) exit 0. Nothing was applied on the development host. From the review of 2026-11-12's commits: libDtTerm links libMcdeSound (977a7347c made the bell call McdeSoundEvent; dtcodegen did not link); the PLIST lacked dtphoto, dtpaint, dttoolbox, mcdesoundd, libMcdeSound, their data and the sound themes (51 entries, from the installed tree); mcdesoundd was started by nothing (sessionetc.d/0075.mcdesoundd) and took the selection from a running server; dttoolbox kept only the first line of the Selected menu and rebuilt it every 500 ms, and NewMenu returned an uninitialised pointer past 64 menus. Built and installed with make mcde-host MCDE_DIRS=install, exit 0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|
|
a0ce4e5d47 |
dttoolbox T1: the chest, its chestrc parser, the dynamic Selected menu
A Motif window with the reference's five menus (Desktop, Selected, Find, System, Help) read from share/toolchest/system.chestrc -- the grammar subset Menu/f.menu/f.exec/f.checkexec.sh/f.separator/dynamic. It owns _SGI_TOOLCHEST_WINDOW, answers _SGI_TOOLCHEST_CONFIG, and polls the desktop's _SGI__MENU_WINDOW rendezvous for _SGI_MENU_Selected, rebuilding the Selected menu when the text changes (the property read asks for AnyPropertyType: a CARDINAL window id is what xprop writes). Measured: make mcde-linux exit=0; screenshot build/mcde-shots/dttoolbox.png; with the property set by xprop the log says 'menu Selected published (3 entries)'. |