dtsystemsettings has a Workspace menu on the Desktop page: This
Workspace (the active one) or one of the named workspaces, read from
DtWsmGetWorkspaceList. A chosen backdrop goes to that workspace: dtwm
learned f.change_backdrop_ws INDEX PATH PIXMAP STYLE (the same parse as
f.change_backdrop, with the workspace index first) and
McdeBackdropFromFile on pSD->pWS[INDEX]; SetNewBackdrop keeps the choice
with SaveWorkspaceResources, so dtsession carries it to the next login
and ChangeToWorkspace shows it. Measured under Xvfb: the menu lists
This Workspace, One, Two, Three, Four; Two + Ankh.bm printed
'dtwm: backdrop ws=1 .../backdrops/Ankh.bm style=0'. WmMain.c now
includes WmFunction.h (the MCDE prototypes were implicit).
Konrad, 2026-11-16: scrolling looked inverted in the settings, and the
touchpad could not be configured (three buttons or two with taps/gestures).
- The wheel radio pair had its texts swapped: without the button 4/5 swap a
wheel turned towards you sends button 5 and the content goes down, so that
is the "towards you" state. The labels now sit on the right widgets.
- McdeSys gains mcde_sys_touchpad_get/set (McdeSys.h): tap to click, two
fingers as no/right/middle button (pms(4) hw.synaptics.tap_to_click and
.two_fingers_emulation) and a scrolling strip at the pad's edge
(.vert_scroll_percent/.horizontal_scroll_percent, 7 or 0). The sysctls are
CTLFLAG_READWRITE, so a write as a user answers MCDE_SYS_EPERM with a
sentence; a system without the interface answers ENOTSUP (Linux: libinput
keeps its own, per device).
- The Mouse tab builds a Touchpad section from the read values (tap, the
pad's own buttons / right / middle, the scrolling strip) and writes
~/.dt/touchpad only after a successful set; the note says when the
administrator is needed. dtsystemsettings -apply-touchpad puts the saved
values back, for a boot script or an unlocked session.
Measured: make mcde-linux MCDE_DIRS="install lib/McdeSys" and
"install programs/dtsystemsettings" exit=0; the NetBSD branch of netbsd.c
passes x86_64--netbsd-gcc -std=gnu11 -fsyntax-only -Wall with the tree's
sysroot; the Mouse tab on Linux shows the corrected wheel pair and "This
system keeps the touchpad settings outside the desktop" (screenshot), and
with a stub backend in the build tree only for the picture, the section with
tap, fingers and strip; dtsystemsettings -apply-touchpad with a saved file on
Linux answers the ENOTSUP sentence, rc=1; with no file rc=0.
mcde_sys_disk_events() opens /dev/drvctl O_NONBLOCK on NetBSD; the
events come as an ioctl, not read(2), so the new
mcde_sys_disk_event_read() is the one call a program uses: Linux reads
the uevent, NetBSD asks DRVGETEVENT and turns the property list into the
same 'device-attach sd0' line (the way devpubd(8) does it). dtwm's
desktop and test_sysinfo use the new call; the cross compiler builds
events.c and netbsd.c for NetBSD and the Linux tests stay green.
McdeSys: McdeSysMount and mcde_sys_mounts() -- /proc/mounts on Linux
(label from /dev/disk/by-label, removable from /sys/block), getmntinfo
on NetBSD; pseudo file systems are marked volume=0, network file systems
network=1; test_sysinfo checks that / is mounted once.
dtwm: WmMcdeDesktop.c is the 4Dwm-style desktop: one override-redirect
window per icon in the top right corner, filled from the top down, then
the next column left; XPM glyphs; labels cut with '...'; the computer
('/'), disk mounts, removable media (mounted or not), network mounts and
the person's files from ~/.dt/Desktop and ~/Desktop; right click menu
(Open, Open Home, Show on All/This Workspace, Unmount, Move to Trash);
drag and drop; every icon's place and workspace in ~/.dt/desktop.conf
(kept for good); not mounted media are mounted by the double click.
WmWrkspace.c calls McdeDesktopWorkspaceChanged() on a workspace change.
tools/mcde-shot.sh: MCDE_DESK_TEST_MOUNTS, MCDE_DESK_TEST_DISKS,
MCDE_DESK_TEST_DESKTOP and MCDE_SHOT_KEEP_HOME for the tests.
mcde_sys_net_io: bytes and packets each way, for each interface (the loopback
too). mcde_sys_disk_io: bytes and operations read and written, for each whole
disk (no partitions; no loop, ram or zram devices). The difference of two
readings over the seconds between them is the rate the Network and Disk
Activity tabs draw.
NetBSD (read in the tree first): the interface counters are the struct if_data
of the link-level address from getifaddrs(3) (ifi_ibytes, ifi_obytes,
ifi_ipackets, ifi_opackets); the disks come from sysctl hw.iostats
{CTL_HW, HW_IOSTATS, sizeof(struct io_sysctl)}, asked for its size and then for
the array (usr.bin/vmstat/drvstats.c:183-188, :323-328), type IOSTAT_DISK,
rbytes/wbytes/rxfer/wxfer (sys/sys/iostat.h). Cross-compiled with
x86_64--netbsd-gcc -Wall -Wextra: no diagnostic. NEVER RUN on NetBSD.
Linux: /proc/net/dev (64-bit counters), /proc/diskstats (512-byte sectors),
whole disks only: those with a directory in /sys/block.
test_sysload (make check, 7 of 7) now also: 2 MB sent over a TCP connection on
127.0.0.1 raise the loopback's rx and tx bytes by at least 2,000,000 and its
packets; 8 MB written and fsync'ed next to the test move the disks' write
counters (measured here: 25,595,904 bytes for 8 MB -- the device-mapper volume
and the physical disk under it are both whole devices, so a window should not
add them up); the counters never go back by name; the write check says SKIP
instead of failing where the file system has no disk. Mutants: rx bytes taken
from packets fails 2 checks, write bytes taken from the read sectors fails 1,
sectors not multiplied by 512 fails 1.
Not done of t0091: the program (programs/dtactivity).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
mcde_sys_cpu_times: one McdeSysCpu (user, nice, system, idle, other ticks since
boot) per processor. mcde_sys_memory: bytes, total = free + cached + used (cached
is what the system gives back when asked), and swap. mcde_sys_signal: TERM, KILL,
STOP, CONT, HUP or INT to a process above pid 1 -- never init, a group or "all my
processes" (kill(2) with 0 or a negative number is refused before it is asked);
EPERM for another user's process, ENOENT for one that is gone.
Backends, read in the tree before they were written:
- NetBSD: kern.cp_time given room for every CPU (hw.ncpu x CPUSTATES x 8 bytes)
returns each CPU's counters in CP_ order (sys/kern/init_sysctl.c,
sysctl_kern_cptime: "alternately, you can pass an additional mib number and get
cp_time for that particular processor"; a buffer of one CPU's size gets the
SUM); memory from vm.uvmexp2 (struct uvmexp_sysctl, pages; top(1) reads it
too, external/bsd/top/dist/machine/m_netbsd.c). Cross-compiled with
x86_64--netbsd-gcc -Wall -Wextra: no diagnostic. NEVER RUN on NetBSD.
- Linux: /proc/stat (cpuN lines, "other" = iowait + irq + softirq + steal),
/proc/meminfo (cached = MemAvailable - MemFree, else Buffers + Cached).
test_sysload (make check, 7 of 7): the memory adds up and agrees with
sysconf(_SC_PHYS_PAGES) within 5 per cent; the CPU counters never go down and
0.4 s of work of the test's own shows as at least 5 ticks; children are stopped
(state T in mcde_sys_processes), continued and ended by TERM, KILL, HUP and INT
(the exit status says which signal); pid 1, 0, -1, a group and a bad signal are
refused; a waited-for child is "gone"; another user's process answers EPERM (to
SIGCONT only, and only when the test is not run by root). Mutants: memory
without the x1024 fails 2 checks, a parser that loses the busy ticks fails 1.
Not checkable on a busy host: that user, nice, system and idle are not swapped
(the shares depend on the load); the NetBSD backends are not run.
Not done of t0091: mcde_sys_disk_io and mcde_sys_net_io (the Disk Activity and
Network tabs), and the program itself.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
mcde_sys_net_mount ran in the Xt callback and waited for sshfs/mount_afp
without a limit: a server that is gone froze the window for as long as the
tool lived (measured: the call returns after 20.0 s with a tool that sleeps
20 s; with one that never ends, never).
McdeSys: mcde_sys_net_mount_start/_job_fd/_job_finish/_job_cancel. The tool
runs under a runner process (its own process group) that writes the answer
to a pipe: dtfile sets SIGCHLD to SIG_IGN (Main.c), where waitpid gives no
status. mcde_sys_net_mount and _start share one plan (MountPlanFor).
test_job (make check, 5 of 5 pass) covers success, failure, a missing tool,
a password on stdin, and cancel with the tool AND what it started gone, with
SIGCHLD default and ignored; without the group kill it fails (mutant run).
dtfile: _McdeNetMount (NetView.c) for all three mounts (network view,
Connect to Server, column view): a modal "Connecting ..." dialog with Cancel
(also close button and Escape), the descriptor as Xt input (no timer
polling), one time-out, Dtfile*connectTimeout, 20 s, 3..600 (app-defaults,
man page).
Measured (real dtfile on Xvfb, fake sshfs that sleeps 40 s, connectTimeout
4): the dialog shows and repaints when moved; the time-out gives "Could not
connect: The server did not answer within 4 seconds.", Escape gives
"Could not connect: Cancelled."; sleep processes while connecting 1, after
the time-out 0, after Escape 0; no dialog left. One first run showed a 40 s
stall of the whole session after Return (import blocked too); not
reproduced in three further runs, cause unknown. Cross compile for NetBSD
(x86_64--netbsd-gcc, the build's flags): netmount.c and NetView.c without a
warning; common.c's old settimeofday declaration warning is not new. Not
done: the NFS and AFP tools (only sshfs was faked), the afp://10.255.255.1/
case of the task with a real mount_afp.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
pid, parent, owner, command name, state, threads, real and virtual memory in
bytes, CPU time in ms. NetBSD: sysctl KERN_PROC2 the way libkvm's kvm_getproc2
asks (size, then the buffer by count, ENOMEM -> again), CPU time from p_rtime_*
as ps(1) does (print.c:1059), state from p_realstat and the LWP's p_stat.
Linux: /proc/PID/stat read after the LAST ')', memory from statm.
Measured: test_processes (this process, init, a zombie until waited for, a
sleeping child named 'a b)c', SIGSTOP as T, SIGCONT back) and the three other
McdeSys tests PASS, mcde-linux exit=0. Against ps -eo for every process in both
lists: 631 compared, parent, owner, threads, RSS, state and CPU time all agree.
First version used stat's rss: on this kernel it is larger than VmRSS/statm
(126 of 632 processes more than 10 % off), so statm is read. The NetBSD code is
compiled against the NetBSD sysroot with x86_64--netbsd-gcc -Wall -Wextra
(all of netbsd.c, exit 0), not run there. Also <ctype.h> in netbsd.c and
linux.c: isspace() was used undeclared (an error with GCC 14, masked in the
build by -Wno-error=implicit-function-declaration).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
New programs/dtsystemsettings/printers.c replaces the "printers" entry that
only started dtprintinfo:
* the left list is the queues of CUPS (McdeSys mcde_sys_printers: lpstat
-p and -d, parsed; the default is marked with a star and named in the
status line), the right side is what is chosen -- state, location,
model, whether it is the default and whether it is shared;
* "Add Printer..." lists the printers mDNS finds (_ipp._tcp through
avahi-browse -rtp, names unescaped: avahi writes \032 for a space in
decimal), fills the queue name from the chosen one and shows its URI;
* "Add", "Remove Printer..." and "Set as Default..." run in the terminal
of su(1) (dtsystemsettings -add-printer NAME URI | -remove-printer |
-set-default-printer), the pattern of the other root actions; adding
uses the driverless model (lpadmin -p NAME -E -v URI -m everywhere);
* "Print Queue..." opens dtprintinfo -all, CDE's queue view.
McdeSys gained mcde_sys_printers, _printer_add, _printer_remove,
_printer_default and _printers_discovered (lib/McdeSys/printers.c, built for
every backend). Names and URIs are checked before they reach an argument
list (letters, digits, - and _; ipp://, ipps://, socket://, usb:// without
spaces or shell punctuation); the mDNS output is only parsed.
The task asked for libcups rather than command lines; measured 2026-11-14 on
the build host, cupsGetDests2() returns 0x2 and leaves num_dests untouched --
through dlopen and linked directly -- while _cupsGetDests() finds no queue
and lpstat -p lists the two the desktop has. The library path is a
follow-up, and AGENTS.md carries the measurement.
Measured under Xvfb with xdotool, against the host's CUPS:
- the pane lists HP_LaserJet_M110w_CC1016 (idle) and Samsung_CLP-365
(disabled, its reason shown), the default star on Samsung and "Default
printer: Samsung_CLP-365" below -- the same two and the same default that
lpstat -p / lpstat -d print; the detail side shows the chosen queue
(docs/screenshots/leopard/System-Preferences-Print-and-Fax-mcde.png);
- "Add Printer..." finds "HP LaserJet M110w (CC1016)" over mDNS, choosing
it fills the name HP_LaserJet_M110w_CC1016 and the URI
ipp://192.168.1.147:631/ipp/print
(docs/screenshots/leopard/System-Preferences-Print-and-Fax-Add-Printer-
mcde.png);
- "dtsystemsettings -set-default-printer Samsung_CLP-365" as the user
answers "The default printer was not changed: The default printer needs
the administrator." -- the root step runs in the su terminal;
- test_sysinfo prints both queues and the discovered printer;
- make lib/McdeSys, programs/dtsystemsettings exit=0; check lib/McdeSys:
test_sysinfo and test_netmount PASS.
Open (follow-up): printing a test page, the fax/Bluetooth/AppleTalk printers
of the reference, the NetBSD CUPS path, and adding a queue verified in a VM
with an IPP printer.
dtmail opens the shared settings window (lib/DtWidget/McdePrefs.c) with
`dtmail -prefs`: a row of icon tabs, the page under them, no OK or Cancel.
The argument is taken out of argv before Xt sees it, and RoamApp::initialize
returns after building the window -- no mailbox and no ToolTalk are needed
for it.
General Default email reader (dtmail, Thunderbird, Evolution, mutt,
xdg-email), Check for new mail (Manually, 1, 5, 15, 30, 60
minutes), New mail sound (the events of the session's theme, a
click plays it), Play sounds for other mail actions, Show the
unread count in the front panel, Downloads folder, Remove
unedited downloads, and what a search includes (Trash, Junk).
Viewing Show message headers (All/Brief/Full), the order of the list,
the preview pane.
Values are kept as English KEY=VALUE in ~/.dt/dtmail.conf (McdePrefsConf),
the labels themselves (mailreader=Thunderbird), so the file stays readable.
dtmail's CDE Options dialog stays for the retrieval details; these keys are
the one pattern every MCDE program has, and wiring each into dtmail's own
option system is a follow-up.
McdePrefs grew what dtmail needed and the measurements found:
* the page is a vertical XmPACK_COLUMN row column of rows; a row is a form
of its own, made by McdePrefsRowBegin()/McdePrefsRowEnd() -- a widget
cannot be reparented, so a row cannot take one made elsewhere (the old
chained-form rows overlapped with many rows);
* the window takes the size of the chosen page (its children are measured
after the page is managed) and the title is the page's name;
* a tab click finds its window by walking up the widget chain to a shell
whose XmNuserData is a Prefs -- XtParent(XtParent(w)) alone found
nothing, so no tab did anything before (measured).
dtpad's settings use the same two calls now; its window still writes
~/.dt/dtpad.conf.
Measured under Xvfb with xdotool:
- dtmail -prefs: the General page -- docs/screenshots/leopard/
Mail-Preferences-mcde.png -- and after a click on the Viewing tab the
title is "Viewing" and the window 356x275 instead of 430x634
(docs/screenshots/leopard/Mail-Preferences-Viewing-mcde.png);
- Default email reader -> Thunderbird: ~/.dt/dtmail.conf has
"mailreader=Thunderbird";
- the Downloads field typed to /tmp/Downloads and Return:
"downloads=/tmp/Downloads";
- "Play sounds for other mail actions" off and on again: "othersounds=0"
then "othersounds=1";
- dtpad's Wrap to fit: "wrap=1" in ~/.dt/dtpad.conf;
- make check lib/DtWidget: test_prefs PASS; make lib/DtWidget, dtpad,
dtmail exit=0.
Open (follow-up): the reference's other pages (Accounts, Signatures, Rules),
wiring the keys into dtmail's own options, and ~/.dt/defaults with a
mailto: action -- choosing Thunderbird here stores the choice, but the
mailto: link still goes to dtmail's own action.
New programs/dtsystemsettings/security.c with the reference's three tabs:
General "Require password to wake this computer from sleep or screen
saver" writes dtsession's lock time (_DtSetSmState with
SM_STATE_LOCKTIMEOUT; the Screen Saver page reads and writes the
same field, so the two pages show one setting). On: the lock at
the saver's time, or ten minutes without a saver. "Use secure
virtual memory" is NetBSD's vm.swap_encrypt through McdeSys
(now and in /etc/sysctl.conf, root). Automatic login and a
log-out after N minutes are shown as what the desktop has:
dtlogin always asks for a name and a password, and dtsession
has no idle logout -- the pane says so and greys the controls.
Encryption the cgd(4) volumes of /etc/cgd/cgd.conf, and the sentence that
encrypting a disk is a decision of the installation, not of a
running system; changing a passphrase is a follow-up.
Firewall the npf(7) state (rc.conf npf=YES, /etc/npf.conf); the rules
are a follow-up -- a fixed template with the shares of the
Sharing page, never free text.
McdeSys gained the security state: mcde_sys_swap_encrypt_get/_set,
mcde_sys_cgd_volumes, mcde_sys_firewall_get. netbsd.c implements them
(sysctl(8) vm.swap_encrypt, /etc/sysctl.conf through a KeySet() that rc.conf
now uses too, /etc/cgd/cgd.conf, rc.conf's npf), linux.c answers
MCDE_SYS_ENOTSUP with a sentence saying whose feature it is.
test_sysinfo prints all three.
The pane's icon is new: programs/icons/McdeLock.pm (a padlock, palette
colours); "security" is a real pane now, not a greyed entry.
Measured under Xvfb with xdotool (dtsession started in the session):
- the lock checkbox: _DT_SM_STATE_INFO on dtsession's window before the
click 0xfff, ... lockTimeout 0x0; after it 0x100 (SM_STATE_LOCKTIMEOUT),
lockTimeout 0x258 (600 s); a second click puts it back to 0x0;
- the three tabs and their content (docs/screenshots/leopard/
System-Preferences-Security-mcde.png with the lock on, ...-Encryption-
mcde.png, ...-Firewall-mcde.png);
- test_sysinfo on this (Linux) host prints the three MCDE_SYS_ENOTSUP
sentences -- the pane shows them instead of dead controls;
- make check programs/dtsystemsettings: test_panes PASS; the Sound and
Keyboard & Mouse panes still switch their tabs after the layout fix
below;
- make programs/dtsystemsettings, lib/McdeSys exit=0.
A Motif lesson, saved in AGENTS.md: a row column inside the pane area takes
the other orientation unless told, a child added later to a tight-packed
column goes into the next column, and a page managed for the first time after
its widgets were built keeps a height of one line. The pane therefore builds
its page fresh inside an XmPACK_COLUMN container on a tab change; the same
XmNorientation, XmVERTICAL went into the Sound and Keyboard & Mouse page
containers.
Not measured, because this host is not NetBSD or has no root: swapping
vm.swap_encrypt, reading cgd volumes, the npf state and writing npf rules.
They are the follow-up task for the VM.
lib/DtWidget/McdePrefs.c and include/Dt/McdePrefs.h: the reference's
preferences window -- a row of icon tabs from appconfig/icons/C (the active
one pressed), the tab's form under it, no OK or Cancel. A tab's form is
built the first time it is shown; Escape closes, the close box only hides
it. McdePrefsRow() puts a right-aligned label left of a widget and stacks
the rows; McdePrefsSeparator() draws the group lines.
Values are kept in ~/.dt/<prog>.conf as KEY=VALUE (English, the tab shown
last as lasttab=) -- McdePrefsConf.c does that without X, so test_prefs
tests it without a display: get/set, keep the other keys, replace instead of
doubling, no comment pile-up.
dtpad is the first user: Options > Preferences... opens two tabs, "Editing"
(Wrap to fit, Overstrike) and "Window" (Status line). A change goes to the
Dt Editor at once, the Options menu's toggle follows, and the value is
written. At start dtpad overlays ~/.dt/dtpad.conf over its X resources, so
the next start has it.
Measured under Xvfb with xdotool:
- Options > Preferences... shows the icon tabs and the rows
(docs/screenshots/leopard/dtpad-preferences-mcde.png);
- switching "Wrap to fit" on writes "wrap=1" into ~/.dt/dtpad.conf (cat;
the header is written once, lasttab=Editing is kept);
- starting dtpad with "wrap=1" and "status=1" in that file shows the
status line (Line: 1 Total: 1) without any menu being touched -- the
change survives a restart;
- Escape closes the window;
- make check in lib/DtWidget: test_prefs PASS.
Open: dtfile's Prefs.c and dtcalendar (t0149, not built yet) are not moved
to it -- dtpad proves the building block; Command+, still finds a program's
menu entry through the old name heuristic instead of an explicit
registration. Both are follow-up tasks.
LICENSE at the root; the 103 files new in ext/src/mcde (none was in the CDE
import) carry the CNCL line instead of the LGPL notice.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The pane is the reference's window now: the big clock, the date and the
zone, then Date & Time | Time Zone | Clock.
Date & Time: "Set date & time automatically:" with the server
(pool.ntp.org by default) and "Apply Time Service"; a month calendar with
the weekday row and < > for the months (the chosen day pressed), a time
field with "Now", an analog clock drawn on Expose and once a minute, and
"Set Date and Time". Both root actions run in the su(1) terminal the
program already uses: dtsystemsettings -set-time EPOCH and -set-ntp on|off
SERVER. Below: "To set date and time formats, use Language & Region." and
a button that opens that pane.
Clock: the bar's clock -- shown or not, 24-hour, seconds, weekday, date --
written to ~/.dt/clock ("show=", "format="), which dtbar reads at its next
minute (measured: format=%H:%M leaves "07:49" in the bar).
McdeSys has the system side: mcde_sys_ntp_get/set (NetBSD: ntpd=YES in
rc.conf, the pool line of ntp.conf, /etc/rc.d/ntpd start/stop; Linux:
timedatectl set-ntp and timesyncd.conf) and mcde_sys_time_set
(settimeofday(2), root).
Measured under Xvfb: the three tabs render
(docs/screenshots/leopard/System-Preferences-Date-and-Time-mcde.png,
...-Time-Zone-mcde.png, ...-Clock-mcde.png); the Clock tab writes
"show=1" and "format=%a %e %b %H:%M" to ~/.dt/clock, and dtbar with that
file shows the chosen format.
Not run: the root paths (this session has no root, and setting the
development host's clock or switching its NTP on is a hazard). The tests
the task asks for -- ntpd=YES in /etc/rc.conf, ntpd running, date(1)
changed -- belong in the test VM; the commands they use are the two above.
File > Get Info (Cmd+I) opens the reference's Info window instead of the
CDE permissions dialog: the name, its size and date, then sections that
open and close with a click -- General (kind, size, on disk, where,
created, modified, locked), Permissions (owner, group, everyone: read and
write, read only, none), Comment (an extended attribute) and Preview (the
miniature of McdeThumb). One window per file manager: Cmd+I again replaces
what it shows and the sections keep their state. The old "Change
Permissions..." item stays in the menu, without the key.
Two new McdeSys calls, because a program does not touch the file system's
specialties itself (ext/src/mcde/AGENTS.md): mcde_sys_file_comment_get/set
(user.mcde.comment on Linux, EXTATTR_NAMESPACE_USER "mcde.comment" on
NetBSD, MCDE_SYS_ENOTSUP where there are none) and
mcde_sys_file_locked_get/set (FS_IMMUTABLE_FL on Linux, chflags(2)
UF_IMMUTABLE on NetBSD; a normal user may not set it on Linux, the box then
stays as it was). "Created" says "not known" where POSIX has no birth time
(Linux); NetBSD shows st_birthtime.
Measured under Xvfb with xdotool: Cmd+I on Bild.png opens the window with
General/Permissions/Comment/Preview (docs/screenshots/leopard/
finder-get-info-mcde.png, the comment read back from the attribute); the
Owner menu to "Read only" on a 0664 file leaves -r--rw-r-- (chmod 0464);
the Comment field saved "Wichtig" and
python3 -c "os.getxattr(..., 'user.mcde.comment')" returns b'Wichtig';
clicking "General" collapses it to ">" and the sections below move up.
Open: "Open with" and the label colours of the reference are not there yet
(the action list and a user.dt mapping are a task of their own); the
program's icon is missing in the development session (t0194, no data
types), the sections are ASCII arrows, and dtwm places the window at the
corner (the picture moves it with xdotool).
The dialog is the reference's: the sentence at the top, one entry per
program, the hint "You can open this window by pressing
Command+Option+Escape." at the bottom left, and the button at the right --
"Force Quit", or "Relaunch" when the chosen program is the file manager.
A question comes first: "Do you want to force <program> to quit? You will
lose any unsaved changes."
A program is its class (WM_CLASS), so its windows are one entry (dtfile
showed up three times before). Whether it answers is the process from
_NET_WM_PID: a stopped (SIGSTOP, a debugger) or zombie process says
"(not responding)". That test is new in McdeSys --
mcde_sys_process_stopped(), /proc/PID/stat on Linux and KERN_PROC2/p_stat
on NetBSD -- because a program never reads /proc itself
(ext/src/mcde/AGENTS.md, "the operating system is behind one layer"). The
pid is looked for three levels down from the root's children: dtpad's main
shell carries the class but not the pid, the file manager's main window
carries both (measured 2026-11-14), so the class grouping takes the pid from
whichever window of the program has one.
Ending a program: XKillClient closes its connection (it ends however it
hangs), then a local pid gets SIGTERM and, three seconds later, SIGKILL --
a stopped process cannot see the closed connection, so the signal is what
ends it. The file manager is started again a second later.
Measured under Xvfb with xdotool (dtbar + dtfile, dtfile SIGSTOPped):
"Dtfile (not responding)" in the list, the button says "Relaunch"
(docs/screenshots/leopard/force-quit-mcde.png); Return opens the question,
Return again confirms; the old process (pid 3692926) is gone after six
seconds and a new dtfile runs (pid 3696883).
Open: the list cannot show the program's icon or colour it red -- XmList
takes strings (the reference has icons and red "not responding"); the
dialog is placed by dtwm at the corner, the picture moves it aside with
xdotool.
PNG, JPEG, GIF, BMP and XPM are read with libpng, libjpeg and C99 -- GIF's
LZW, BMP's rows and XPM's text are the module's own, so no library beyond
what Motif already brings. A picture is scaled down with a box filter and
kept in $HOME/.dt/thumbs/<64|128|256>/<sha1 of real path, mtime and
size>.ppm; a cache over 50 MB is pruned by age when it is written to. A
picture larger than 8192 x 8192 or 64 MB is refused from its header before
a byte of pixel data is read, and a JPEG is decoded at 1/2, 1/4 or 1/8 when
that still has the size the caller asks for. McdeThumbRequest reads one
picture per Xt work proc, so a folder of photographs does not stop the
window, and McdeThumbRead/Scale is the part without X (a test needs no
display).
Measured on the build host, "make mcde-linux MCDE_DIRS='check lib/DtSvc'":
test_thumb PASS -- every format read back to its own pixels, the box
filter's means and aspect, the 8192/64 MB limits, a damaged file, and the
cache proved by its key (the source overwritten with rubbish of the same
size and mtime, the picture still returned from the PPM). 100 800 x 600
JPEGs at 64 px: 1.2 ms per decode, 100 cache files, 0.0 ms per picture
from the cache; an 11 MB 5000 x 3200 JPEG: 110 ms at 64 px.
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>
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>
The theme directory is the unit: a second theme Base (the lower voice of
Camouflage) sits beside it. The Sound pane lists the directories found
next to the current theme; a click sends McdeSoundSetTheme, which writes
the path into _MCDE_SOUND_THEME and sends _MCDE_SOUND_RELOAD; the server
reads the property and reloads (McdeSoundLoadTheme).
Measured: click on Base -> daemon log 'theme now .../Base', the next
Launch plays .../Base/launch.wav; screenshot settings-sound3.png.
System Settings > Sound keeps volume and mute and adds eight event buttons
(Launch, OpenFolder, Error, Warning, Beep, DeskSwitch, TerminalBell,
NewMail) that send McdeSoundEvent; McdeSoundCount/McdeSoundEventName expose
the theme's event list for the next step (a list built from the theme).
Measured: screenshot build/mcde-shots/settings-sound.png; two clicks with
xdotool on 'Launch' produce two 'Launch -> .../launch.wav (player)' lines
in the daemon's log.
lib/McdeSound (include/Mcde/Sound.h) reads the theme in the reference's
X-Resource form (*Launch.soundfile: launch.wav) and sends an event as a
ClientMessage to the selection owner of _MCDE_SOUND_SERVER.
programs/mcdesoundd is that server: it looks the event up, drops a repeat
within 50 ms, plays the file through paplay/aplay/audioplay (the X bell
when no player is installed) and logs the path.
The theme Camouflage carries 19 events with tones generated for MCDE (no
files from the reference), installed under share/sounds/themes.
Measured under Xvfb: mcdesoundd -selftest -> PASS; with the server running,
'Launch' and 'OpenFolder' arrive and the log names the played files.
include/Mcde/Displays.h (McdeDisp*): the arrangement arithmetic
(DtUtil2/McdeDispConf.c, test_displays now in lib/DtSvc) and reading,
setting and keeping the monitors through RandR (DtUtil2/McdeDisplays.c,
the RandR ids in the structure instead of tables of the pane). libDtSvc
links Xrandr when configure found it; dtwm links it for the coming plug
and play. Tested: make check in lib/DtSvc (test_displays) and
dtsystemsettings; the pane on the dummy Xorg as before (applied, back
after 16 s, kept and written).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dtkeys makes it Mod4 at login (a PC keyboard's left Alt and Windows keys
are exchanged, a Macintosh keyboard is so already; ~/.dt/keyboard chooses,
McdeSys tells a Macintosh keyboard). Motif's text fields copy, cut, paste
and select all with Command+C/X/V/A; dtterm pastes, copies, opens and
closes tabs and switches them with Command; dtwm's switching, minimizing,
zones and full screen go by Command too. Option is Alt, where Motif's
menu mnemonics stay.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
McdeSys gets the backup (lib/McdeSys/backup.c): a partition becomes the
backup disk with an encrypted repository (borg init -e repokey-blake2);
every hour root's crontab runs dtbackup run: borg create of / (and /home)
on its own file systems, lz4, then prune -- 24 hourly, 30 daily, 52
weekly, every monthly unless set otherwise (keep_* in
/etc/mcde-backup.conf, -1 keeps every one) -- and compact. The watcher:
before and after each run, while the backup disk has less than min_free
percent free (10 unless set), the oldest backup is deleted and the space
given back; the newest is never deleted. Listing (borg list --json) and
restoring a path into a folder (borg extract). The passphrase lives in
/etc/mcde-backup.pass, root's alone, handed over by BORG_PASSCOMMAND.
docs/reference/borg.txt from borg 1.4.5's own documentation.
dtbackup run | status | list: the same from a shell and for cron, no X.
Measured: builds on the Linux host and compiles in the build VM; as a
user dtbackup status says no disk is set up and dtbackup run refuses.
Not measured: a real backup -- borg is not on the host and goes into the
set with the next userland.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mcde_sys_disks lists the drives, each with its partitions: size, model,
file system, label, removable, the system's (/, /usr, /var, /home, swap),
where mounted and how full. NetBSD: hw.disknames, dkctl getgeometry and
listwedges, atactl identify, getmntinfo, swapctl -l; Linux: lsblk -P -b.
mcde_sys_disk_mount (/media/LABEL; Linux through udisksctl),
_unmount, _check (fsck -n) and _erase (root; a drive with a system
partition or a mounted one is refused): NetBSD gpt destroy/create/add,
dkctl makewedges, newfs -O 2 or newfs_msdos -F 32; Linux sfdisk and
mkfs.ext4/vfat. docs/reference/disks.txt.
mcde_sys_permissions compares owner, group and mode of the system's files
with the specification sysinst keeps for every installed set,
/etc/mtree/set.* (set.makronix too), and repairs them as root (mtree -e
-U). mtree -k did not stop it from comparing sizes and checksums, so the
specification is narrowed to type, uname, gname, mode and link first.
Linux keeps no such list: not supported there.
docs/reference/permissions.txt.
Measured: on the Linux host the NVMe drive and its three partitions, all
the system's; erasing as a user refused. In the build VM as root,
listing only: wd0 (QEMU HARDDISK, 68.7 GB) with dk0 on / and dk1 swap, cd0;
verifying the permissions reported 207 differences, all under /usr/pkg,
which that VM built itself instead of unpacking the set. Nothing was
mounted, erased or repaired.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mcde_sys_net_browse lists the computers that announce SMB, AFP, NFS, SSH
or just themselves by DNS-SD: on NetBSD through mdnsd with dns_sd.h from
base (DNSServiceBrowse per type, DNSServiceResolve per service, select
until the time is up; docs/reference/dns-sd.txt), on Linux with
avahi-browse -atrpk (its \DDD escapes decoded). mcde_sys_net_shares
lists NFS exports (showmount -e) and SMB shares (smbclient -g -N -L);
mcde_sys_net_mount connects sftp:// (sshfs, a password on its standard
input), nfs:// (mount_nfs / mount.nfs) and afp:// (afpfs-ng's mount_afp)
to a folder; mcde_sys_net_unmount (fusermount -u, else umount). Host
and user names are checked before they reach a command line.
mcde_sys_capture_limited ends a child after a time: showmount waited
minutes for an rpcbind that was not there (measured in the build VM);
the share lists wait 8 seconds.
Measured: on the Linux host 4 computers with their services (KITT,
N95 with SMB; two laptops with SMB and SSH), the local SMB share and NFS
export listed, a host name with ';' refused. In the build VM: it builds
with -ldns_sd; without mdnsd a clear message; with mdnsd started the
browse ran and found none (qemu's user network carries no multicast);
showmount gave up after 8 s. Mounting is not measured yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
McdeSys gets the services that let others in (mcde_sys_service_state,
mcde_sys_service_set) and one list of shared folders for SMB, NFS and AFP
(mcde_sys_shares, mcde_sys_shares_set: /etc/mcde-shares, and a block
between "# MCDE shares begin" and "... end" in exports, smb.conf and
afp.conf; the rest of each file stays as written). NetBSD switches
rc.conf and runs the rc.d scripts -- sshd; rpcbind, mountd, nfsd and
nfslocking for NFS; samba, netatalk, atalkd and papd from pkgsrc, whose
example rc.d scripts are copied to /etc/rc.d first, as PKG_RCD_SCRIPTS=YES
would. Linux uses systemctl (ssh, smbd and nmbd, nfs-server, netatalk;
no AppleTalk). NetBSD's kernel has AppleTalk (GENERIC: options NETATALK)
and pkgsrc's netatalk4 builds atalkd on NetBSD. docs/reference/sharing.txt.
The Sharing pane (Internet & Network) shows each service with its switch
and how others reach it (ssh host, smb://host/, host:/folder,
afp://host/), and the shared folders with Add and Remove; as a user it
offers Unlock..., as Accounts does.
Measured: on the Linux host, read only: ssh, smb, nfs installed, enabled,
running; afp and appletalk not installed (the pane on Xvfb says so). In
the build VM as root: NFS on started rpcbind, mountd, nfsd, statd, lockd;
sharing /tmp/mcdeshare made showmount -e list it for Everyone; NFS off
stopped them; the VM's rc.conf was restored after. First found there:
mountd will not start without /etc/exports, and statd/lockd are one
script, nfslocking. Samba and netatalk are not in the makronix set yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CDE's front panel stays as it is. Left of the trash it gets one part of
MCDE's (dtwm/WmMcdePanel.c): first the programs kept in the panel
(~/.dt/panel-apps), then the running programs no main panel control names.
A click brings a window forward on its workspace, or starts a kept
program; the right button offers Keep in Panel / Remove from Panel, and
dragging a running one to the left with the button held keeps it too.
The command to start a kept program comes from WM_COMMAND, else from the
process of _NET_WM_PID through the new mcde_sys_process_command (NetBSD:
sysctl kern.proc_args, Linux: /proc/PID/cmdline), else the class.
The buttons are CDE's panel controls (_DtCreateControl) with the class's
icon; a blank of the same width in the arrow row keeps every drawer's
arrow over its control; colour and pattern come from the panel row, so the
part follows the palette. Hooks: UI.c (MainControlCreate), WmManage.c
(manage, unmanage), PopupMenu.c (the menu button over the part).
Measured on Xvfb (build/mcde-shots/panel-*.png, theme-*.png): dtterm and
dtcalc appear left of the trash; Keep in Panel wrote "Dtterm dtterm",
the drag "Dtcalc 'dtcalc'"; with none running a click on the kept
dtcalc started it; in a dtsession with the Default and the Arizona palette
the part has the panel's colours and the bar, the panel and the windows
all change with the palette.
www: the front panel and the colours.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
McdeSys gets mcde_sys_timezone_get (where /etc/localtime points into
/usr/share/zoneinfo), mcde_sys_timezones (zone1970.tab, else zone.tab, and
UTC) and mcde_sys_timezone_set: the zone must be a file of the zoneinfo
directory and a plain name, the caller root; the new link is made beside
/etc/localtime and renamed over it, so it is never missing (sysinst makes
the same link: src/usr.sbin/sysinst/util.c), and Debian's /etc/timezone
follows where it exists. All POSIX, in common.c, for NetBSD and Linux.
Date & Time shows the regions and their places with the zone in use
selected; Set Time Zone sets it as root, or opens a terminal where su asks
for the password and runs dtsystemsettings -set-timezone ZONE.
Measured: test_sysinfo on the Linux host says "zone Europe/Lisbon, 313
zones offered" and refuses "../../etc/passwd"; on Xvfb the pane shows
Europe / Lisbon selected (build/mcde-shots/desk-0.png). Setting a zone
is not measured yet (not on the host; the build VM is busy).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Motif 2.3.8 shifts the channels of a PNG without alpha the wrong way and
draws only its blue (docs/reference/motif-png.txt). libDtSvc gets
McdeImageGetPixmap/McdeImageFreePixmap (Mcde/Image.h): PNG through libpng's
simplified interface (png_image, the background for the alpha), packed by
the visual's masks; every other format still through XmGetPixmap. dtwm's
backdrops and slideshow and the small pictures of System Settings use it.
dtwm now also frees a backdrop pixmap that is not in Motif's cache (a
scaled copy), which it kept for good before.
configure finds libpng >= 1.6 with pkg-config; the recipe includes
graphics/png's buildlink3.mk (Motif depends on it already); the header is
in the PLIST.
Measured on Xvfb: the RGB PNG that showed only blue (slide-3.png before)
shows its colours as backdrop (build/mcde-shots/slide-3.png) and as a
small picture (desk-2.png). A 16-bit PNG is not measured.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
McdeSys gets mcde_sys_battery: all batteries as one, charging, mains,
minutes left. NetBSD reads the envsys(4) dictionary of /dev/sysmon as
envstat(8) does (acpibat "present", "charge", "charging", "discharge
rate"; acpiacad "connected"), Linux /sys/class/power_supply (energy_* or
charge_*, status, Mains/USB online). The sources are in
docs/reference/battery.txt.
dtbar shows a fourth icon, only when there is a battery: full, half, low
(red), charging; its menu says the charge, the power source and the time
left. The status bar is 30 pixels an icon.
Measured: on the Linux host test_sysinfo says "battery 76% ac", as
/sys/class/power_supply/BAT0/capacity and AC/online do; the menu on Xvfb
(build/mcde-shots/battery-menu.png) says "Battery: 76 %", "Power Source:
Power Adapter". The NetBSD backend compiles and runs in the build VM,
which has no battery (envstat: no drivers registered): only the
no-battery case is measured there.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
McdeSys: mcde_sys_users/user_add/user_delete (users.c, POSIX getpwent and
useradd/userdel), user_set_password and user_set_admin per system (NetBSD:
pw_gensalt+crypt for usermod -p, wheel; a group member removed by rewriting
the group's line as user.c does, since usermod -G only appends -- measured;
Linux: chpasswd on stdin, gpasswd, sudo), mcde_sys_update_check/apply
(NetBSD: /etc/makronix/update, RELEASE, sysupgrade, pkg_add -uu; Linux:
apt-get). A secret goes through a pipe, never on a command line.
Tests: test_sysinfo refuses a bad login and, not as root, adding (PASS on
Linux and NetBSD); as root in the NetBSD VM add/admin on/off/password/delete
pass and /etc/group is as before.
dtsystemsettings: Accounts (list, Add/Delete/Password/Administrator,
Unlock... through su -m root in a terminal, password fields show stars),
Software Update (running, available, new packages, source, Check Now,
Update Now... runs -apply-update as root in a terminal; the check runs
after the pane shows: apt took 21 s here).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mcde_sys_interfaces (getifaddrs; Wi-Fi and SSID from the backend: the
SIOCG80211NWID ioctl on NetBSD, /sys/class/net and iw(8) on Linux),
mcde_sys_volume_get/set/mute (PulseAudio's pactl where a server answers,
else mixerctl(1) on NetBSD, amixer(1) on Linux), mcde_sys_bluetooth and
_power (btconfig(8), bluetoothctl(1)). mcde_sys_capture reads a tool's
output to the end. test_sysinfo only reads: on the Linux host Wi-Fi with
its SSID, 75 %, hci0 on; in the NetBSD VM wm0 wired with its address, no
mixer, no Bluetooth -- both PASS.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mcde_sys_info (system, version, kernel, model, processor and count, memory,
startup disk and its space, host name) and mcde_sys_power (sleep, restart,
shut down) in libMcdeSys: common.c is POSIX, netbsd.c uses sysctl(3),
/etc/release, statvfs's f_mntfromname, zzz(8) and shutdown(8); linux.c uses
os-release(5), /proc and /sys, systemctl or shutdown(8). test_sysinfo (make
check) passes on the Linux host and, compiled natively, in the NetBSD build VM.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
dtterm does not call DtInitialize: it starts the program side itself
(_DtMcdeGlobalMenuInitialize, declared in Mcde/GlobalMenu.h when Xt is in).
McdeGlobalMenu.c keeps all menu bars (dtterm has one per tab), hides any the
program manages while the bar runs (Xt change hook) and exports the first
that lives. dtterm's menus follow the tab with the focus
(_DtTermViewMenuSetCurrent, setContext split into contextFor), since from the
bar they are not posted from the tab. dtbar defers a new menu text while one
of its menus is open (the open menu was pulled away under the click).
Tested on Xvfb: dtterm's Window/Edit/Options/Help in the bar, no menu bar in
the window with two tabs, Window > New Tab from the bar makes the third.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
include/Mcde/GlobalMenu.h is the protocol (selection _MCDE_BAR_S<n>,
_MCDE_MENU on the program's window, _MCDE_ACTIVE_MENU on the root, client
messages to activate and refresh). libDtSvc's McdeGlobalMenu.c, started by
DtInitialize, finds every XmMenuBar with an Xt create hook, hides it while
the bar runs and writes its tree; a click in the bar calls the button's own
callback -- no Motif patch, every CDE program takes part. The text form is
McdeMenuModel.c with its test (PASS test_menumodel). dtbar: M menu (dtaction
Dtstyle, Dtterm, Dtfile, LockDisplay, ExitSession), the program's menus, the
clock; started by Xsession.d/0090.dtbar. The Mcde headers are installed.
Tested on Xvfb with dtwm and dtcalc: its menu bar leaves its window, Options
and Help are in the bar, Options > Memory Registers opens dtcalc's dialog.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- pkgsrc recipe: DISTNAME mcde-0.1.0 (archive from tools/mcde-dist.sh),
CONFLICTS+= cde-[0-9]*, DESCR.
- configure.ac: AC_INIT name and version 0.1.0; MCDE_VERSION; the
tarname and the CDE_VERSION_* API level stay (share/cde, DtVERSION).
- Dt.h: DtVERSION_STRING "MCDE 0.1.0 (CDE 2.5.3)".
- programs/icons/MakronixDtlogo.pm from docs/logo/camouflage, installed,
in PLIST, the default Dtlogin*logo*bitmapFile.
- include/Mcde/McdeSys.h: users, network/Wi-Fi, host name, time zone;
checked with gcc -std=c99 -D_POSIX_C_SOURCE=200809L -pedantic.
- ext/src/mcde/AGENTS.md: the philosophy (CDE/Motif/Xlib only, C99/POSIX,
everything OS-specific behind lib/McdeSys, conflicts with CDE).
Not built yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
cde-2.5.3.tar.gz, SHA512 a01b413b... as in pkgsrc distinfo; recipe from
pkgsrc 3c1118e94432. Added with -f: CDE's .gitignore hides 612 files of
the archive.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>