The tmsg line alone does not reach a default install: dtwm reads its keys
from ${CDE_CONFIGURATION_TOP}/config/%L/sys.dtwmrc, and only the
installation copy under ${CDE_INSTALLATION_TOP} exists there, so a default
session runs on WmResource.c's builtinKeyBindings. Ctrl+F2 is in that set
now (as Cmd+Tab, Cmd+H, Ctrl+Left/Right and the screenshots already are).
dtbar's Command("menu") puts the X input focus on the bar's shell and the
Motif focus on the M cascade (the first one), instead of XmTRAVERSE_HOME on
the bar, which left the traversal nowhere.
Measured on Xvfb with ttsession, dtwm, dtbar and dtterm, a fresh HOME:
xdotool getwindowfocus before Ctrl+F2 -> 0xe00037, the Terminal window
(547x361 at 23,45); after -> 0xc0003d, 1280x22 at 0,0, the bar's shell
(xwininfo). tools/mcde-keytest.sh ctrl+F2: "screen changed". Down and
Return still post no menu: the bar also carries the client's exported menu
bar, and Motif does not traverse into it from outside -- recorded in
AGENTS.md as an open point, the pointer opens the M menu (screenshot).
make mcde-linux MCDE_DIRS="install programs/dtbar programs/dtwm" exit=0.
sys.dtwmrc bound Mod4 Shift 3 and 4 (and Ctrl for the clipboard) to
`dtscreenshot` since 2026-11-15, and the program did not exist: the key
reached dtwm and nothing happened (tools/mcde-keytest.sh, t0222).
programs/dtscreenshot/dtscreenshot.c: C99, Xlib and libpng only, no toolkit.
(none) the root window -- every monitor -- as a PNG,
"Screenshot YYYY-MM-DD at HH.MM.SS.png" in ~/Desktop, else in ~
-area the rectangle the pointer drags out, XOR outline, Escape cancels
-clipboard image/png on the CLIPBOARD selection, held until another owner
-delay N wait before the picture (a menu to open first)
-o FILE this file instead of the default name
Nothing runs until the key is pressed; the area is grabbed with a crosshair
cursor; a picture larger than the server's maximum request is refused with a
message (the clipboard is handed over in one property, no INCR).
Wired in three places as ext/src/mcde/AGENTS.md asks: programs/Makefile.am's
SUBDIRS, configure.ac's AC_CONFIG_FILES, the source directory with its
Makefile.am; dt/bin/dtscreenshot is a PLIST line.
Measured on Xvfb :99 with the development build (build/mcde-root/dt/bin):
dtscreenshot -o /tmp/shot-test.png -> 800x600 PNG, exit 0
dtscreenshot -area -o /tmp/shot-area.png with
xdotool mousemove 100 100 mousedown 1 mousemove 300 250 mouseup 1
-> 200x150 PNG
dtscreenshot -clipboard, then
xclip -selection clipboard -t image/png -o -> 800x600 PNG
tools/mcde-keytest.sh: Mod4 Shift 3 puts
"Screenshot 2026-11-15 at 08.51.30.png" on the session's Desktop
(0 before, 1 after; build/logs/mcde-keytest-2026-11-15f.txt).
make mcde-linux MCDE_DIRS=plist: 3210 installed names under dt/, ok.
Merged with the project's tool (programs/localized/util/merge, LC_ALL=C.UTF-8),
de_DE and es_ES lost F8-F11, Ctrl+Up and all lines after them because message 11
closed its quote after the F10 line; de_DE, es_ES and fr_FR lost every line
after the first f.exec "..." because the inner quotes were not escaped. Both
fixed; all 11 locales now merge with rc=0 and no message, and the Keys sections
carry the same 56 MCDE key lines as C.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
4affe0dc00 changed the compiled-in key table (WmResource.c) but not the
sys.dtwmrc.tmsg files, so a session bound Cmd+Tab to f.next_key (window cycling)
and Shift+Cmd+Tab to f.prev_key. Now f.mcde_app switcher / switcher-prev in all
three key messages of the 11 files. SEEN (C locale, tools/mcde-keytest.sh, build/logs/mcde-keytest-2026-11-15c.log
exit=0): a box naming the program 'Dtterm' appears.
tools/mcde-keytest.sh: keys through tools/mcde-xkey.sh, a before/after screenshot
compare next to the window list, the terminal keys with a terminal focused.
docs/reference/shortcuts-test-2026-11-15.txt: key, expected, seen, verdict for the keys tried; Ctrl+F2 (the bar's menu
bar) is not bound anywhere.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
MEASURED 2026-11-15 on Xvfb with plain XTest keys: a session loads
Dtwm*keyBindings: DtKeyBindings, and that block of sys.dtwmrc had no Mod4 line;
the 25 Command/Ctrl+Left/Right/Eject/screenshot lines stood only in
DefaultKeyBindings (and in the Sun-keyboard variant), so XGrabKey of Mod4+h from
a second client succeeded (nothing grabbed) and the keys did nothing. The 25
lines are copied into message 11 of all 11 sys.dtwmrc.tmsg.
SEEN after (C locale): Ctrl+Right goes to workspace Two; Command+Ctrl+Left makes
the focused File Manager the left half, Command+Ctrl+BackSpace gives it back,
Command+H minimizes it to an icon. Not run: the other ten locales (only C is
built on this host); they got their own lines of DefaultKeyBindings, placed
after the F9-F11 lines of their message 11 like the lines that stand there.
With the front panel focused, Command+Ctrl+Left made it half the screen:
f.mcde_snap and f.mcde_fullscreen now ignore panel windows (seen: unchanged).
tools/mcde-xkey.sh presses keys by plain keycodes (XTest): xdotool 3.20160805
sends Alt_L first and the F-key with Alt held on this keymap, which made every
plain F-key binding look dead (the F9 of t0216).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
WmMcdeSpaces.c: an override-redirect window like the window overview, drawn
once on demand, nothing runs while it is closed. Reached as f.mcde_app spaces
(a new function name is not bound by a key, as measured for the overview).
Seen on Xvfb: F8 opens it, Right + Return goes to Two, a click on Four goes
there, F8 twice closes, 1 goes back to One; docs/screenshots/leopard/Spaces-mcde.png.
The 'F9 does nothing' of t0058/t0216 was the test sender: xdotool 3.20160805
sends Alt_L before an F-key in this keymap, so the key arrives as Alt+F9. With
plain XTest keycodes F8 reaches the root grab (ext/src/mcde/AGENTS.md).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The same three paints meant different things on the four tabs (user/system/nice,
used/cached, read/write, receive/send) and nothing said which; each tab has a
"Graph: ..." line under its numbers now. The Disk and Network graphs stack
read on write but were scaled to the larger of the two, so a second with both
could clip: they scale to the highest stacked column (Peak sums the two).
Seen in a PID-namespace session with a disk writer: the line fits under the
numbers, the red writes fill the height at the peak.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A table of the processes -- PID, name, user, % CPU since the last sample,
threads, real and virtual memory -- sorted by the column title you click; Show
(all, mine, system), a filter, Quit Process (asks; SIGTERM; Force Quit SIGKILL)
and Inspect; and under it four tabs, CPU, System Memory, Disk Activity and
Network, with the numbers and a three-minute history graph. All of it through
McdeSys (processes, CPU times, memory, disk and network counters, signals, the
commits of 2026-11-14/15); no ps(1), no top(1). New program: programs/
dtactivity (Makefile.am, programs/Makefile.am, configure.ac, PLIST line
dt/bin/dtactivity; make mcde-linux plist: ok).
Frugal, as t0080 asks: one timer, 2 s, only while the window is mapped and not
fully obscured. Measured with strace -c -f -p for 15 s: 2349 system calls
visible, 0 unmapped (xdotool windowunmap), 0 with an override-redirect window
over the whole screen, 2365 shown again. Control: an idle sleep gives the same
empty summary, a process that makes calls does not.
Quit Process measured against real processes in a PID namespace (unshare -rpf
--mount-proc: only the test session's processes exist, so neither the tests nor
the screenshot show the host's): Cancel leaves a process alive, Quit ends it, a
process that ignores SIGTERM survives Quit and is ended by Force Quit. Filter
and column sorting seen in screenshots (the committed image is the CPU tab with
two busy loops and the 24 MB/s of a disk writer in the other tab). Cross
compile for NetBSD (x86_64--netbsd-gcc -Wall -Wextra): no diagnostic. The
"Cannot convert string mcde to type FontStruct" warning is the shared
*renderTable fallback: dtimage prints it too.
Not built: Show "with window", the global menu, Cmd+F and Cmd+1..5, the
administrator's way for another user's process (t0079; it says "belongs to
somebody else"), a legend for the graph colours, the dtappscan entry; the NetBSD
backends of the numbers were never run. Sorting by clicking a header was not
exercised by a script (the layout was); the default sort (CPU, descending) is
what the screenshots show.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
create_replace_merge_dialog: "A folder named ... already exists in this location.
Do you want to merge the contents of the two folders?" and Stop / Merge, no radio
box. Merge is the default (Return), Escape and the Stop button cancel. The
hidden G_merge_toggle keeps replace_merge_ok_callback and the pipe protocol as
they were; "replace the whole folder" is no answer of this question any more.
Found while measuring Stop: the focus of both dialogs sat on the FIRST button
(Stop here, Keep Both in the single-file dialog of t0156), and in Motif Return
activates the focused button, so Return did not take the default. XmNinitialFocus
is ignored on the form for a button in a RowColumn (a tab group of its own); it
is set on the row now, to Merge and Replace.
Measured (real dtfile on Xvfb; Cmd+C opens the Copy Object dialog, the
destination typed there; folders A/ord{one.txt}, B/ord{two.txt}):
folder: Return -> B/ord one.txt two.txt; Merge button -> the same; Escape and
Stop button -> B/ord two.txt only; A/ord one.txt every time.
file (A/f.txt "from-A", B/f.txt "from-B"): Return -> f.txt=from-A; Escape and
Stop button -> f.txt=from-B (the Stop of t0156 now measured); Keep Both ->
f_1.txt=from-B and f.txt=from-A.
Before the focus fix Return in the folder dialog did NOT merge (B/ord two.txt).
Cross compile for NetBSD (x86_64--netbsd-gcc, the build's flags): no error, no
warning in the changed code. Screenshots: Finder-Copy-Merge-mcde.png (new),
Finder-Copy-Replace-mcde.png (retaken: the focus is on Replace).
Not done: the multi-collision dialog "Do this for all" (item 3 of the task).
Keep Both renames the EXISTING file (CDE's rename protocol); the Finder keeps
the incoming copy under the new name -- noted in AGENTS.md, not changed.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
What was copied is shown on the screen the moment the launcher opens, so a
password from a password manager sat there in clear.
- Dtlaunch*clipboardHistory, default False. Off: nothing is asked of the
clipboard's owner (no XFixes watch, no poll) and the hint line drops "the
clipboard". System Settings > Keyboard & Mouse > Shortcuts has the toggle
"The launcher keeps a history of what was copied"; it writes the resource
like the hot key does and restarts the launcher.
- On: a text that is new is kept only if its owner does not offer the target
x-kde-passwordManagerHint with the value "secret" (what KeePassXC, KDE Wallet
and others set; docs/reference/clipboard-password-hint.txt has the two
sources and what they do not say). An unchanged clipboard costs no second
request. The copy of the text is overwritten after use.
Measured (Xvfb, a small X program as the password manager, logging requests):
on: owners "ordinary-text-123" (no hint target), "hunter2-PASSWORD" (hint
"secret"), "second-ordinary-456": each got UTF8_STRING then the hint request;
the list shows the two ordinary texts, not the password. Off (no resource):
0 requests in total, empty list. The toggle in the real dtsystemsettings gives
the resource True, False, True; the indicator changes; the note fits. Cross
compile (build's flags): dtlaunch.c and input.c without a warning; make check
of dtlaunch passes. Not verified: a real password manager (the assumption
that its MIME type is an X11 target of that name is written in the reference
file), a launcher restart on a real session. The default is the task's; one
word in dtlaunch.c's resource table turns it back.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The top-level shell only owns the selection _MCDE_SOUND_SERVER, but it was
realized with mappedWhenManaged on: a 1x1 window at +0+0 that a window manager
would frame (review no. 32, unverified until now). Measured on a private
Xvfb with xwininfo: before, the shell 0x200010 "mcdesoundd"/Mcdesoundd: Map
State IsViewable; after XtSetMappedWhenManaged(top, False): IsUnMapped (the
Xt leader window was and is IsUnMapped). The server still receives: an event
the theme does not know, sent with `mcdesoundd -event ProbeNoSuchEvent`, is
logged by the running server ("has no sound in the theme").
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>
The menu the desktop publishes (_SGI_MENU_Selected on the window named by the
root property _SGI__MENU_WINDOW) was read on a 500 ms timer, two atom lookups and
two property reads each time. main now looks at PropertyNotify itself (Xt
routes no event for a foreign window to a widget; dtlaunch's loop does the
same) and selects the menu window's property events before reading the text.
Measured: idle writes to the X socket in 10 s (strace) 20 before, 0 after; the
publisher scenario (2, 3, then 1 entries) is reported at 0.01 s, 3.001 s and
7.001 s.
Two defects of the old code, found by the control run: (1) the third change of
a menu with children died with SIGSEGV in XtDestroyWidget -- the loop walked the
parent's own XmNchildren array while every destroy shortened it; the list is
copied first. (2) A rebuild deferred because the menu was open recorded the
text as seen and never built it; the text is forgotten now and one 1 s timer
retries, only while that waits. The deferred path is not exercised by the
harness.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
XFixesSelectSelectionInput on CLIPBOARD; the event names the new owner, whose
text is read once. configure.ac checks libXfixes and gives only dtlaunch
XFIXESLIB and XFIXES_CPPFLAGS (-DHAVE_XFIXES); a define in config.h would have
recompiled every file. Without the library or the extension the owner is asked
every 5 s (POLL_MS, was 1 s). The recipe lists x11/libXfixes/buildlink3.mk.
Measured with strace (writes to the X socket, 10 s idle after 4 s): 10 before,
0 with XFixes, 2 in the fallback (5.0 s and 10.0 s; tested with an LD_PRELOAD
shim that makes XFixesQueryExtension fail -- Xvfb -extension XFIXES aborts for
any Motif client, also an unmodified dtpad). Both paths still put a copy made
by xclip during idle into the history (screenshots). The sysroot has Xfixes.h,
libXfixes.so.4.1 and the pkg-config files; the cross build of the recipe change
is not run yet.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
dtsystemsettings -list-panes prints the panes (ID, name, category, keywords; a
PANE_LATER pane is left out) before any X setup. dtlaunch asks for them once
(pipe and exec, no shell, a 3 s poll limit; no waitpid, SIGCHLD is ignored
there) and model.c parses and matches them: the name at full score, a keyword
at half, the ID checked because it ends up in dtsystemsettings -pane ID. A
result reads '[settings] Displays (Hardware)' and starts through the same
Parental Controls as a program (run_args). dtlaunch -text STRING fills the
field of the first opening, for tests and tools/mcde-shot.sh.
Measured: make mcde-linux 'check programs/dtlaunch programs/dtsystemsettings'
exit=0, test_model PASS (test_panes: parse incl. unsafe IDs, matching incl. a
German keyword); -list-panes: 24 lines, exit 0 with DISPLAY unset, no dock;
Spotlight-mcde.png: typing 'disp' lists '[settings] Displays (Hardware)'
second; Return on 'displays' starts 'dtsystemsettings -pane displays' and a
window 'Displays' appears (Xvfb). Not done: the grouped two-column list,
documents/mail/PDF/web results, the dtbar magnifier, the clipboard without the
1 s poll (t0185, t0080).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Both were noinst_PROGRAMS: built, not installed, run by no Makefile.am -- in a
cross build two programs compiled for the target that nothing can run
(tools/check-buildtools.sh found them). Built only on request now.
Native: make mcde-linux for the two directories, exit=0, the regenerated
Makefiles say EXTRA_PROGRAMS (build/logs/mcde-linux-2026-11-14-t0197.log).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
A web page has one action on the desktop now, McdeWeb
(programs/types/datatypes.dt.src): it runs "dtsystemsettings -open-web
%Arg_1%", which reads the browser from ~/.dt/defaults (web:, chosen in the
Default Programs pane) and starts it with execlp -- no shell, and an argument
with a shell character is refused. -open-web is handled before Xt is set up,
so an action needs no display.
The .html and .htm criteria of programs/types/firefox.dt map their Open to
McdeWeb: a double click in dtfile now follows the file's choice instead of a
hard-wired Firefox. McdeWeb takes ARG_TYPE * -- an action that names a data
type the file does not have is refused ("Either action ... does not apply",
measured), and it is only named by the types that may use it.
dtthemesync gained the Firefox part: every profile under ~/.mozilla/firefox
with a prefs.js gets a user.js (downloads into ~/Downloads, reduced motion,
no cosmetic animations, no smooth scrolling, ui.key.accelKey 91 -- Command is
Mod4 in MCDE) and a chrome/userChrome.css written from the palette.
Measured under Xvfb with xdotool and a wrapper that records its arguments:
- dtsystemsettings -open-web http://example.org with web: true answers
"Opened in true: http://example.org" and exits 0, without a display;
- -open-web "http://x;rm -rf /" answers "That is not an address" and exits
1; -open-web "" answers "No address was given";
- a double click on page.html in dtfile with web: mcdetest-browser hands
exactly that path to the wrapper (cat of what it got);
- the same double click with web: firefox opens a "Mozilla Firefox" window;
- dtthemesync -v in a test home with a fake profile writes user.js and
chrome/userChrome.css; user.js carries browser.download.dir
<home>/Downloads, prefersReducedMotion 1, cosmeticAnimations false,
smoothScroll false, ui.key.accelKey 91, and the CSS starts with
--toolbar-bgcolor: #c6b2a8 (the palette Default.dp);
- the Default Programs pane shows web: firefox and, after the fix, the
links choice that the file has ("in a tab of the window that is there")
-- docs/screenshots/leopard/web-browser-default-mcde.png;
- make programs/dtsystemsettings, programs/dtthemesync, programs/types
exit=0; check programs/dtsystemsettings: test_panes PASS; check lib/DtSvc
PASS.
Not measured: Firefox's own Cmd+T/W/L in a running window (the user.js sets
the accelerator; that needs a person at the keyboard), and dtexplorer -- the
Motif browser of the task -- which is its own program and a follow-up.
New programs/dtsystemsettings/parental.c: the accounts on the left and, for
the chosen one, three pages. Programs: "All programs" or "Only the
applications selected below" with a list of the desktop's programs. Time
Limits: weekday and weekend hours ("09:00-19:00" or "any"). Log: the
programs that were started, from ~/.dt/parental.log. The values are kept in
~/.dt/parental.conf under the login's name ("lotherk.allow=dtpad,dtfile"),
English keys, the file the launcher reads.
The enforcement is in dtlaunch, the place where a program is started: the
list shows only the allowed names, a disallowed program or a start outside
the hours is refused with a sentence in the window ("Outside the allowed
hours (Parental Controls)."), and every allowed start is appended to
~/.dt/parental.log. A refusal keeps the launcher open.
Measured under Xvfb with xdotool:
- with "lotherk.only=1, allow=dtpad" the launcher offers dtpad only;
- with hours 03:00-03:01 (now 13:4x) Return on dtpad is refused, the
window stays and says why, and ~/.dt/parental.log stays absent;
- with "any" the same Return starts dtpad and the log gets
"2026-11-14 13:44 dtpad";
- the pane shows the accounts, the three pages and the applied file
(docs/screenshots/leopard/System-Preferences-Parental-Controls-mcde.png,
...-Time-Limits-mcde.png);
- make programs/dtsystemsettings, programs/dtlaunch exit=0.
Not done (follow-up): system-wide enforcement -- taking the execute
permission away from programs outside the list needs root, ending a session
when the hours are over belongs to dtsession, and a child's own file needs
the administrator. A toggle or radio set before its page is laid out keeps
its first painted state in this pane (measured); the file is right.
dtwm draws the volumes of the computer in a small window in the top right
corner under the bar (new programs/dtwm/WmMcdeDesktop.c): one tile for each
mounted volume from mcde_sys_disks -- the drive glyph, the volume's name on
a background field of its own (no shadow, no transparency), the chosen one
boxed. A second click within 500 ms opens the volume in dtfile
(fork/execv, no shell). The list is read when the window manager starts;
a volume plugged in later needs the mount events of t0080/t0083.
MCDE_DESK_DEBUG=1 prints what it found (tools/mcde-shot.sh passes it into
the session).
The bar's right end gained the reference's two parts: a person cascade with
the login name (the passwd entry first: a session started with an empty
environment has no USER -- measured, the menu said "user"), Accounts... and
Log Out...; and a magnifier cascade with "Launcher (Command+space)"
(dtlaunch -show) and the settings. Both are cascades because the status
area is a homogeneous menu bar and refuses any other child (measured:
"Attempt to add wrong child type").
McdeSys's Linux disk backend now lists lvm and crypt volumes; the root of a
host with LVM was missing from every disk list before (measured: only
/boot and /boot/efi stood on the desktop, the root now appears as
"System").
Measured under Xvfb with xdotool:
- the desktop shows efi, boot and System in the corner
(docs/screenshots/leopard/Desktop-mcde.png);
- a double click on System opens "File Manager - kitt:ROOT";
- the person menu says "lotherk", with "Accounts..." and "Log Out...";
- the magnifier opens its menu; "Launcher (Command+space)" starts dtlaunch
(-show);
- test_sysinfo lists the root volume; make lib/McdeSys, programs/dtwm,
programs/dtbar exit=0.
Open (follow-ups): the front panel's running-program dots, the volume
hot-plug (t0083), and the desktop icons' text colour from the palette
(they use the session's background with black text today).
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.
New programs/dtwm/WmMcdeOverview.c: F9 (or Ctrl+Up) opens an
override-redirect window over the screen with a grid of tiles, one per
window, ordered by the windows' places; each tile keeps its window's aspect,
carries the frame's colour and the window's title (read from the XmString by
joining its text components -- XmStringGetLtoR with a tag of ours failed for
WM_NAME, measured). Arrows, Tab and the pointer choose, Return or a click
raises and focuses that window and closes the view, Escape closes it. No
live pictures, no dimming, no animation: drawn on Expose and when the choice
changes.
F10 (Ctrl+Down) keeps the focused program's windows (WM_CLASS); F11
iconifies every window of the workspace and the next F11 brings exactly those
back (the list is kept).
The keys route through f.mcde_app overview-all|overview-app|overview-desktop:
a new dtwm function name is not bound by a key (measured again with F9 and
f.mcde_overview, after f.mcde_switcher). The five bindings are in the
built-in table (WmResource.c) and in every locale's sys.dtwmrc.tmsg -- fr_FR
had no "f.menu DtRootMenu" line, so its block got them after its last
binding (Alt<Key>F6 f.next_key transient) instead. WmMain.c hands the
overview's events to McdeOverviewEvent before the rest of the dispatch.
Measured under Xvfb with xdotool (dtpad, dtsystemsettings, dtfile open):
- F9: a 2x2 grid, three tiles with their titles ("System Settings",
"File Manager - programs", "Text Editor - (UNTITLED)") --
docs/screenshots/leopard/expose-mcde.png;
- a click on the System Settings tile: the overview window is gone from
the tree and _NET_ACTIVE_WINDOW changed from 0xe0002e (dtpad) to
0x100002c (System Settings), which is first in the stacking order;
- F10 with two dtpad windows and the others open: two tiles, both
"Text Editor - (UNTITLED)";
- F11: the three viewable windows are IsUnMapped; the second F11 makes
exactly those three IsViewable again;
- make programs/dtwm exit=0.
Open: the grid has no live window pictures (that needs a compositor) and no
dimmed desktop behind it -- the tiles are flat, as the design says.
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>
A new view beside icons, small icons and the columns (Command+4): the chosen
picture large in the middle, three neighbours each side, flat, in Motif's
frame colours -- no perspective, no reflection, no glide; a redraw happens on
Expose and when the choice changes. Under the strip the name is bold and
the kind follows (the type's label), then a scroll bar for the strip, then
the folder's list; the chosen line is selected and moves with the strip.
Pictures come from McdeThumb: only the visible entries are read, and the
second visit of a folder reads ~/.dt/thumbs (MCDE_THUMB_DEBUG=1 makes the
cache line appear; tools/mcde-shot.sh passes the variable into the session).
A file that is no picture is named where its neighbours are.
The arrows walk the strip (the list follows), Space is the file window's
preview, and the toolbar has the fifth toggle "Strip" -- its icon is the
folder's. Command+4 was the small-icon view; that moved to Command+5
(docs/reference/shortcuts.txt), as the strip takes the fourth place of the
reference's four views.
Measured under Xvfb with xdotool, a folder of 13 PNGs:
- Command+4 shows Bild-01 large with its neighbours
(docs/screenshots/leopard/finder-cover-flow-mcde.png shows Bild-03
chosen: two left, three right, "Bild-03.png" bold over "PNG", the list
with Bild-03 selected);
- Right twice walks to Bild-03 and the list's third line is selected;
- switching to Icons and back to Strip serves three of the visible
pictures from the cache: "thumb: .../Bild-02.png from the cache" and its
neighbours in the log (MCDE_THUMB_DEBUG=1);
- the strip's own drawing area takes the arrows and Space.
Open: the strip has its own list, not CDE's work-area list below it (the
status line and the other views' selection are not shared), and the split is
fixed -- no sash to drag. Idle traffic was not measured separately; the
strip draws only on Expose and on a change, and McdeThumb reads no timer.
mkcatdefs/merge, dfiles/pmaker, the dthelp parsers' context/fclndir are
compiled with CC_FOR_BUILD; sym2num runs with KSH_FOR_BUILD; documentation
and dtappbuilder/ttsnoop (dtcodegen) are options the cross build turns off.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The area is programs/dtsystemsettings/sound.c now (as MCDE-PROGRAMS.md
planned), with the reference's tabs:
* Sound Effects: "Choose an alert sound" and the events of the session's
theme in a list (Launch, Start, End, Error, Warning, Beep, ...); a click
sends the event through mcdesoundd (McdeSoundEvent). The theme is an
option menu of the directories next to the current one (it replaces the
row of buttons).
* Output: the volume of the default output and Mute
(mcde_sys_volume_get/_set/_mute), and "Show the volume in the bar": it
writes ~/.dt/bar (showvolume=), which dtbar reads at start -- with 0 the
speaker is not managed (the status area is one icon narrower).
* Input: a note, because McdeSys has no capture API (no level meter, no
input volume); that belongs to the same addition as a sound-device list.
Measured under Xvfb with xdotool:
- the three tabs (docs/screenshots/leopard/System-Preferences-Sound-mcde
.png, ...-Sound-Output-mcde.png, ...-Sound-Input-mcde.png); Output shows
the volume read from the server (100) and the two switches;
- unchecking "Show the volume in the bar" writes "showvolume=0" into
~/.dt/bar (cat); dtbar started with that file shows no speaker in the
status area, with "showvolume=1" it does;
- a click on an event reaches mcdesoundd: its log names the theme and the
file ("Error -> .../Camouflage/error.wav"); PulseAudio is not there in
the Xvfb session ("Connection refused"), the daemon's own player is the
fallback.
Not measurable here: hearing a sound (no audio device in the session), and
choosing an output device (McdeSys has no device list; two Pulse sinks are
not there). A separate alert volume and the input level wait for that API.
~/Network shows the hosts DNS-SD finds (mcde_sys_net_browse) where a folder
shows files, so Network is walked like a place: the column lists them with a
">" (Caroline's MacBook Air, KITT, N95), and a host opens a column of what it
shares -- its NFS exports and its SMB shares (mcde_sys_net_shares). A share
chosen is mounted on ~/Network/HOST/NAME with mcde_sys_net_mount and opened
in the next column; when it cannot (no root, no guest access, no server) a
message says why. Hosts and shares are no folders on disk: dtfile tells them
apart by their path, and a host is not made the window's folder (the columns
follow it).
Measured under Xvfb with xdotool: dtfile in ~/Network, Columns chosen ->
the first column lists the three hosts of the network; choosing KITT opens
its shares' column ("/home/lotherk/src/makronix", "nobody" -- its NFS
exports) with KITT in the preview (docs/screenshots/leopard/
Finder-Network-mcde.png).
Open: the reference's "Computer > Network" root (the columns start at the
Network place), the sidebar's eject buttons beside the devices, and the
mounting of a share as a user -- it needs the su terminal the other root
actions use, not the plain call; that part was not run.