Xvfb without a window manager leaves the area under a closed SAS/offer dialog unpainted; localui.c clears and exposes the main shell after destroying the dialog. make mcde-host exit=0 after the change; the built UI + headless pairing/message run still passes.
localui.c starts the identity, listener, --peer links, pin store and the transfers from the UI: Nearby comes from DcPeers, messages become conversations of the Local peers account, the send hook routes by peer id, the file hooks use the offer dialog and DcFileSend/DcFileRecv with the Xt timer pumping the DcLoop. An unknown pin shows the 6-digit SAS dialog; Codes match stores the pin in peers.json, Reject (or a changed pin) blocks and closes. main.c gains --local/--config/--listen/--peer/--downloads. End-to-end test: a headless peer connected, the dialog was accepted, the pin stored and 'hello ui' appeared in the transcript (screenshot dtchat-t58-pair.png). make mcde-host still blocked by pid 2126511.
ui_file.c adds the incoming-file dialog (peer, name, human size; Accept/Reject, close counts as reject) and a Motif file selection box for sending to the selected Nearby peer. Conversation > Send File now opens it when a peer is selected and reports 'local mode is not connected' without a manager; the UI exposes dtchat_ui_set_file_send() for the local manager. The smoke opens and destroys the offer dialog. Standalone Motif build and both Xvfb smokes PASS. The transfer wiring (localui) is still open. make mcde-host still blocked by pid 2126511 (sourcesets, ~35 min).
The roster now starts with the local peers from DcPeers (presence mark, blocked note), selecting one shows identity, fingerprint, address and state in the transcript, and a double-click opens the peer dialog with the Blocked toggle (applied at once via dc_peer_set_blocked). The demo model drops its old Nearby account in favour of two synthetic peers; --smoke-test selects alice-id, checks the fingerprint in the transcript and opens/closes the dialog. Standalone Motif build and both Xvfb smokes PASS; screenshot build/mcde-shots/dtchat-t58.png. The file send/receive part of T5.8 is still open. make mcde-host still blocked by pid 2126511 (sourcesets, 31 min).
dtchat-headless starts the TLS listener (--listen [HOST:]PORT, port 0 prints the real port) and one reconnecting link per --peer, loads/creates the identity in --config, prints JSON events (ready, peer-online, peer-offline, message, typing, file-offer, error) and takes JSON commands on stdin (send by host:port or peer id, quit). dc_local_peer_conn() and the ack id let a link know its peer. tests/p2p.sh runs two instances over loopback: A listens, B connects, B sends, A answers by id, both quit; standalone run prints 'tests/p2p.sh: all ok'. Wired into noinst_PROGRAMS and mcde-tests.sh (expect 29 ok). make mcde-host still blocked by pid 2126511 (release/sourcesets/usb).
The build failed at both links: dtchat-ui_accounts.o called dc_json_array_get from libDtChatIpc.so (DSO missing from the command line) and dtchat-irc called dc_irc_parse/split from libDtChat.so. Both programs now name both libraries. make mcde-host exit=0; tools/mcde-tests.sh 24 ok/0 bad; built dtchat --smoke-test and --demo --smoke-test PASS; the built dtchat-irc passes all five fake-server suites (plain, channels, messages, TLS/SASL, reconnect).
A dropped socket or ERROR now schedules a reconnect with 2, 4, 8 ... 60 s backoff (reset on 001) and the process stays alive; the 433 collision appends '_' up to three times before giving up; SASL 904/905/906 sends a fatal auth error and a bye and exits; the connect timeout is 5 s per address and TLS errors are reported as code tls. Fake servers: reconnect after a drop (offline, second connection, same nick, same pid) and 433 -> NICK tester_ -> online both pass; plain, channel and message suites still pass. make mcde-host still blocked by pid 1207058.
libtls (installed libtls-dev 3.8.1 on the build host) now wraps the socket: blocking handshake with a 10 s timeout, then nonblocking tls_read/tls_write with WANT_POLLIN/OUT handling; DTCHAT_TLS_CA allows a test or private CA. The adapter sends CAP LS 302, requests sasl when the server offers it and a password exists, answers AUTHENTICATE + with the PLAIN base64 payload, ends CAP on 903/904 and reports auth errors. configure checks libtls and passes -DHAVE_LIBTLS/-ltls; without libtls a tls:true account gets a clear error. The TLS fake server passes both cases: handshake + CAP REQ + AUTHENTICATE + CAP END + online + JOIN, and wrong password -> auth error. Plain/channel/message tests still pass; make mcde-host still blocked by pid 1207058.
Incoming PRIVMSG/NOTICE become text/notice messages, CTCP ACTION becomes an action message and direct messages open a direct conversation. dc_irc_split_next() splits at UTF-8 boundaries, prefers spaces and always breaks at newlines; the adapter budgets 512 bytes per PRIVMSG line. Sends go through a 128-line queue with a 4-message burst and 2 messages/s, pumped from the poll timeout. test_irc covers the splitter (ASCII, multibyte, over-wide character, newlines, empty); the fake-server test passes 19/19 with three chunks rejoining exactly, every line <= 512 bytes and a 0.50s max gap under flood. make mcde-host still blocked by pid 1207058.
The adapter keeps a channel/member table: JOIN/NAMES/MODE/TOPIC/PART/QUIT/KICK/NICK update it and emit conversation, roster, presence and system messages. After 001 it joins the configured channels. The fake-server sequence (353 names with @/+ modes, JOIN, MODE +o, TOPIC, PART, QUIT, NICK) passes 21/21 checks: JOIN sent, conversation and topic, modes, rename, online/offline presence and the system lines. make mcde-host still blocked by pid 1207058 (sourcesets/usb).
lib/libDtChat/irc.c parses IRCv3 tags, the prefix, the command, up to 15 parameters and the trailing text into a DcIrcMessage; NUL in the line, a missing command, more than 15 parameters and lines over 1 MiB are clean errors. test_irc covers PRIVMSG, tags+prefix, 001/005/353, PING, MODE, CAP, an empty trailing, repeated spaces, the error cases and 1 MiB of rubbish; all ok and ASan/UBSan clean. The IRC adapter now routes PING/001/ERROR/433 through the parser; the fake-server harness still passes 13/13. Added test_irc to tools/mcde-tests.sh. make mcde-host still held by another agent's sourcesets/usb build (pid 1207058).
dtchat-irc speaks protocol v1 on stdio: hello with the six-field schema (host, port, tls, nick, password, channels), configure, connect, non-blocking getaddrinfo/connect, NICK/USER, PING/PONG, state connecting/online/offline and PRIVMSG on send. TLS, CAP, SASL, channels and the full parser are T3.2-T3.6; tls:true gets a clear non-fatal error instead of a silent plain connection. Verified against a local fake IRC server: 13/13 checks (schema, connecting, online after prefixed 001, NICK/USER, PONG, PRIVMSG, bye, exit 0, empty stderr). Built as noinst dtchat-irc; make mcde-host still waits for the lock.
The input handler intercepts unshifted Enter (send), Up/Down (64-entry send history with a saved draft), Tab (complete the current word from the conversation's senders, system lines skipped) and Esc (clear). Shift+Enter keeps XmText's newline. The smoke test checks Tab 'al' -> 'alice ', Up/Up/Down/Down through two sends, the draft round trip and Esc; xdotool under Xvfb confirmed Tab and Up in the real widget. Plain and demo smokes PASS; screenshot build/mcde-shots/dtchat-t28.png. make mcde-host still blocked by the build lock.
programs/types/dtchat.dt defines ACTION Dtchat (Chat, icon Dtchat, EXEC dtchat, NO_STDIO) and is merged into every locale through the types template; Internet/Dtchat joins the App-Manager list. Three icon sizes (16/32/48) draw a speech bubble with three dots. Dtchat app-defaults install into app-defaults/C with the fixed fonts and 760x540 geometry, and dtchat.msg builds a dtchat.cat catalog for the UI strings. The action was executed through dtaction with DTDATABASESEARCHPATH (a test copy wrote its marker file), and the icons decode as XPM. make mcde-host is still waiting for the build lock (pid 1207058).
demo_adapter.c is a real child process speaking protocol v1 (hello with a nick schema, connect opens lobby, send echoes as 'echo', /code asks for a code, answer reports it, disconnect says bye). demo.c owns the DcLoop, pumps it from a 40 ms Xt timeout, applies state/conversation/message/request/error/bye to the model and the UI, and routes sends through dtchat_ui_set_send_hook. --demo uses an empty model plus the adapter; --adapter overrides the path; --demo --smoke-test checks online, selection, a real send round trip and the echoed text. The transcript now word-wraps: XmText's XmNscrollHorizontal is a secondary resource and must be set in the creation arg list, and the text is fitted to the viewport on ConfigureNotify (the horizontal bar is unmanaged). Standalone plain and demo smoke PASS; /code answered with 4242 shows '-demo- answered: 4242'; screenshot build/mcde-shots/dtchat-t26.png. make mcde-host blocked again: build/.build.lock is held by another agent's distfiles fetch (pid 815951).
Command+Tab raised and focused the next program at once, but the bar closed
by a five-second timer: holding Command longer made it vanish, and letting
Command go did not close it. The bar now stays as long as Command is held:
dtwm grabs the keyboard while it is up (the Mod4 keycodes come from the
modifier map), KeyRelease of a Command key is looked at in WmMain before the
generic dispatch (McdeSwitcherEvent), and it hides and ungrabs at once. A
long timer (60 s) only covers a grab that failed or a release that never
came; without the grab the old five-second flash stays.
Repeated Tab while held walks on, Shift+Command+Tab goes back; the chosen
program is raised and focused on every press (unchanged). MCDE_SW_DEBUG=1
prints the grab and the key events.
Measured on an out-of-tree copy of the configured build (the tree's build
lock was held by another session's release/distfiles run): make dtwm linked
the changed sources, and under Xvfb :93 with two xterms
- keydown Super_L, Tab: the bar "MCDE Switcher" is IsViewable;
- after 7 s still held: IsViewable (the old code hid at 5 s);
- Tab again, keyup Super_L: IsUnMapped within 0.5 s, focus on the chosen
xterm; the debug log shows the grab with keycodes 133 134 206 and the
release of 133 closing it.
The official make mcde-linux and the install into /usr/mdt follow when the
build lock is free; the change touches only dtwm. AGENTS.md describes the
behavior.
ui_request.c turns one adapter request object into a Motif dialog: code, password (masked via modifyVerify, the real value kept out of the widget), notice, confirm and qr. The QR bitmap is base64 (one byte per module), drawn into a depth-1 pixmap and shown as XmNlabelPixmap; no QR library. The answer is delivered exactly once from OK/Yes/No, Cancel, the timeout or the window-manager close, and the dialog frees itself before the callback runs. dtchat_error_dialog is the one-button error/notice window. The smoke test exercises all five kinds plus the timeout; --demo-request qr|code|password|error shows one for screenshots. Standalone smoke PASS; QR and masked password verified on Xvfb (build/mcde-shots/dtchat-t25.png). make mcde-host still blocked by the foreign release build holding build/.build.lock (pid 175328).
ui_accounts.c builds the account list and a settings form from the adapter schema: text, secret, int, bool, choice, info and button. Secrets are collected into a separate JSON object and never shown; a modifyVerify callback keeps the masked text while the field stores the real value (this Motif has no XmNechoChar). Add/Delete create or remove accounts through dc_model_remove_account, Save validates required fields and numbers and updates the account label. Wired to File/Accounts... with a demo IRC schema. Standalone build clean; dialog opens on Xvfb, password masked, Save shows 'saved (demo)'; test_conv and ASan/UBSan green. make mcde-host could not run: another agent's release build holds build/.build.lock (pid 175328).
The smoke test pushes 5000 messages through the model and checks that the transcript stays at the 2000-message ring size; standalone smoke PASS in 5.2 s.
The transcript reloads from the model on selection, appends new messages via dtchat_ui_message_added (clearing unread in the active conversation), shows action and system lines, and reloads at 2000 lines. Send and Enter add a DTCHAT_MSG_SELF message to the model through dtchat_ui_send_text, clear the input and append; Shift+Enter stays a newline. The smoke test now injects a runtime message, sends text, pushes past 2000 messages, checks the view cap and verifies '* alice' / '-- bob joined'. Standalone smoke PASS and Enter path verified under Xvfb; the full make mcde-host is blocked by another agent's release build holding the lock.
DcPresence on DcConv (offline default, online/away/dnd); the roster lists accounts and conversations with presence marks and unread counts, 45 demo rooms make it scroll, selection sets the title/topic, fills the transcript from the 2000-message ring and clears unread. The demo model lives in main.c; --smoke-test selects jabber/bob@example.org and checks viewable, selection, transcript and unread==0. make mcde-host exit=0; built smoke PASS; test_conv all ok; screenshot build/mcde-shots/dtchat-t22.png; PSS 5.6 MB.
programs/dtchat: a Motif XmForm with File/Edit/View/Conversation/Help, a horizontal paned window (roster left, chat right), a read-only scrolled transcript, a three-line input, a Send button and a status line. --smoke-test maps the window, checks IsViewable and exits 0/1. Wired into configure.ac and programs/Makefile.am; only Xt/Xm/X11 are linked until T2.7 brings DtInitialize. Built smoke PASS; screenshot build/mcde-shots/dtchat-t21.png (760x540); PSS 5.5 MB (RSS 18.6 MB with the shared Xft Motif).
The Helvetica bitmaps of the reference desktops are in share/fonts: the six
IRIX x_eoe PCFs (helvB10, helvBO10, helvR10, helvR12, helvR14, helvR18) and
the twenty Solaris SUNWxwfnt PCFs (Helvetica 6..14, bold, oblique, bold
oblique); mkfontdir wrote fonts.dir.
Dtwm.defs.src sets the four fontLists of the 4Dwm app-defaults: menus and
client titles -adobe-helvetica-bold-o-normal--14-*, feedback
-adobe-helvetica-bold-r-normal--14-*, icon labels
-adobe-helvetica-medium-r-normal--14-*.
The fonts are core X11 fonts (Motif reads them): dtlogin fontPathTail
(config/Xconfig) puts share/fonts on the X server font path at session
start (ApplyFontPathMods, fontpath.c); 0070.dtfonts keeps the same for a
session that did not come through dtlogin, without a second entry.
Measured: xlsfonts -fn -adobe-helvetica-bold-o-normal--14-* returns the
IRIX 100dpi face; xrmget on the installed Dtwm app-defaults resolves the
four fontLists to the Helvetica names; a session through dtlogin lists
.../share/fonts in xset q Font Path (9 elements); mcde-plist-check ok;
docs/screenshots/desktop/dtwm-4dwm-font.png shows the dtterm title in
Helvetica Bold Oblique.
Inventory of build/logs/mcde-allerrors-2026-11-14.log (the last docs-enabled
cross build): 826 error lines, 774 of them Error 127 (a target binary run on
the build host). The tools that were not found: instant 654 calls,
dtcodegen 44, tt_type_comp 18, dtdocbook2infolib 14; 50 Error 1 come from the
parser's missing context.h (the generators had not run), 2 from XDONE.
instant is the SGML converter for both help volumes and man pages, so it is
the next block.
This block is the dthelp parser's own generators: pass1, canon1 and pass2
run "build" and "eltdef" while the parser is compiled, and they must run on
the build host. Each of their directories now compiles for the host (CC,
CPPFLAGS, CFLAGS, LDFLAGS from the *_FOR_BUILD values AM_MAKEFLAGS forwards,
the same pattern as util/tradcpp and dtinfo/tools/misc), and links a new
libutil_host.a built in util/ with CC_FOR_BUILD from the same sources as the
target libutil.a (context/fclndir had that already; libutil.a stays target
for the installed parser programs).
Measured: make -C build/mcde-linux/programs/dthelp/parser clean, then
make mcde-linux MCDE_DIRS="programs/dthelp/parser": exit=0, 0 Error lines;
the log shows "ar cru libutil_host.a", "./build < .../hptag.dtd",
"./eltdef ../helptag/help.if"; BDONE and EDONE are written; file(1) says
pass1/build/build, pass1/eltdef/eltdef, pass2/build/build and
pass2/eltdef/eltdef are x86-64 Linux ELF; the generated Makefile carries
"CC = $(CC_FOR_BUILD)" after the configured CC.
Still open for t0230: instant, dtdocbook2infolib and the pass1/2 parser
(dthelp_htag2, run by dtdocbook2sdl) as host tools, then turn docs on in
tools/pkgsrc-cross.mk.conf; man pages follow instant; dtappbuilder's
dtcodegen and tt_type_comp are their own blocks.
With focus-follows-pointer (sys.resources: Dtwm*keyboardFocusPolicy: pointer)
a move from a terminal straight onto a desktop icon or onto dtbar kept the
terminal as the keyboard focus: the icon windows did not select EnterNotify,
and McdeDesktopEvent returns True for every event of an icon, so the
workspace's root/backdrop enter path (HandleWsEnterNotify -> Do_Focus_Key
(NULL)) never ran. The bar is a window of its own and dtwm does not focus
it, so hovering it changed nothing either.
- WmMcdeDesktop.c: the icon windows select EnterWindowMask, and their
EnterNotify calls Do_Focus_Key(NULL, time, ALWAYS_SET_FOCUS) -- the focus
goes to the pointer root and dtwm clears the active client.
- dtbar.c: the shell already had EnterWindowMask for the menu refresh; on a
normal enter it now sets the input focus to PointerRoot unless the root or
the bar already has it. A menu's grab (NotifyGrab) is left alone, so
keyboard menu handling is untouched.
Measured under Xvfb :89 (1024x768, pointer policy, Toronto backdrop, dtbar,
two xterms at +56+126 and +406+326):
- before: xterm A -> bar kept xterm A; xterm B -> Computer icon kept xterm B.
- after: A -> icon focus 1 (PointerRoot), B -> icon 1, A -> bar 1,
B -> backdrop 1; hovering A or B again focuses that xterm; the front panel
still takes the focus itself, and the client loses it (unchanged).
make mcde-linux MCDE_DIRS="install programs/dtwm programs/dtbar" exit=0;
"check programs/dtbar" 1 PASS, 0 FAIL; MCDE_DIRS=plist
"mcde-plist-check: ok".
AGENTS.md: the window/focus paragraph says what an icon or the bar now does.
dtsession starts mcdesoundd at login (config/0075.mcdesoundd) and the daemon
dies with the session; the two theme events Start and End were never played.
Now the daemon plays Start as soon as it owns _MCDE_SOUND_SERVER, and End in
an X I/O error handler: at logout dtlogin resets the X server, the daemon's
connection dies there, it forks the player (which outlives it) and exits.
Both go through the theme (MCDE_SOUND_THEME), not a fixed file; the path does
not need X, so it works in the I/O error handler.
Measured (Xvfb :86, installed Base theme, PULSE_SINK on a private null sink in
the running PulseAudio -- no sound on the real sink):
- start: "mcdesoundd: theme .../themes/Base" and
"mcdesoundd: Start -> .../themes/Base/start.wav (player)".
- kill the Xvfb (the server reset at logout):
"mcdesoundd: End -> .../themes/Base/end.wav (player)", and the daemon is
gone (only the session's own daemon remains).
make mcde-linux MCDE_DIRS="install programs/mcdesoundd" exit=0;
MCDE_DIRS=plist "mcde-plist-check: ok".
The AX_* events of the same task (AccessX and the Keyboard pane) are not in
this commit; t0043 stays open for them.
The IRIX cursor font x_eoe usr/lib/X11/fonts/misc/cursor.pcf is extracted
with the sw parser, pcf2bdf turns it into BDF, and bdf-cursors.py makes
58 Xcursor names from the glyphs (form + _mask). The Solaris and IRIX
themes are in share/icons/Solaris and share/icons/IRIX; the Appearance
pane has a "Cursor theme:" menu (Solaris, IRIX) that keeps the choice in
~/.dt/cursor-theme; 0079.dtcursor exports XCURSOR_THEME from it.
Measured: XcursorLibraryLoadImage("left_ptr", "IRIX", 16) returns a
16x16 image, and the menu shows Solaris/IRIX; choosing Solaris wrote
~/.dt/cursor-theme.
The network view's warning names Eject; now dtfile has it. The Selected
menu carries "Eject" (mnemonic E) after "Put in Trash", and Command+E is
bound in the drawing area's translation block (Mod4<Key>e:McdeKey(@,eject)).
Both call McdeEjectSelection(): it takes the selected folders, asks
mcde_sys_disks for the mounted volume whose mountpoint is one of them, and
unmounts it through mcde_sys_disk_unmount -- never a shell, and McdeSys
refuses what the computer runs from. No selection or no mounted volume gets
a sentence instead; a refused unmount shows mcde_sys_error() (as a user,
udisksctl asks polkit and fails without an agent -- measured).
The menu table is a fixed XtCalloc(menuItemCount): the new item made it 69
entries, so menuItemCount goes from 68 to 69 (51 to 52 without the Trash
menu). Without that, opening the Selected menu crashed the window (the
overflow was found by the menu click, not by the build).
Catalog: set 20 messages 173 "Eject", 174 "E", 175/176 the two answers, in
dtfile.msg and the German copy. The desktop's warning now says "Eject in
the file manager (Command+E) or Unmount in the Disk Utility"; its screenshot
docs/screenshots/leopard/Device-Removal-mcde.png is renewed.
Measured (Xvfb, a 32 MB image with one ext4 partition on /dev/loop0p1):
- as the user on :82: the Selected menu shows "Eject" and the window
survives (0x60002d, 213x218); Command+E opens the Eject message
"/usr/bin/udisksctl did not succeed (status 1)." -- the key reaches the
call, polkit refuses a user.
- as root under a root ttsession on :83 (ttsession -c dtfile): selecting the
mounted folder and Selected > Eject unmounts; findmnt then prints
"UNMOUNTED" for /tmp/opencode/ejecttest/mnt.
- after that Eject, a simulated removal of loop0p1 in dtwm
(MCDE_DESK_TEST_DEVICE) logs only "desktop: loop0p1 (remove)" and opens
0 dialogs -- a volume that was put away stays quiet.
- make mcde-linux MCDE_DIRS="install programs/dtfile" and "install
programs/localized/C/msg" exit=0; gencat reads both catalogs;
MCDE_DIRS=plist "mcde-plist-check: ok".
The .cursor files are converted once into the Xcursor format: 41
standard cursor names (left_ptr, watch, wait, hand2, xterm, fleur,
copy, crosshair, question_arrow, glass, the eight resize arrows,
dnd-copy/dnd-move, document, ...) in share/icons/Solaris, with
index.theme. XCURSOR_THEME=Solaris and XCURSOR_PATH in 0079.dtcursor
make GTK, Qt, Firefox and every other program that reads Xcursor use
them natively; dtcursor keeps setting the saved one on the root window
for the Motif programs that inherit it. Measured with libXcursor:
XcursorLibraryLoadImage("left_ptr", "Solaris", 16) returns a 16x16
image.
programs/cursors holds the 27 .cursor files of Solaris 2.6; programs/dtcursor
reads the X11 cursor text format (Format_version=1, Width, Height,
Valid_bits_per_item=16, one or two bitmaps) into source and mask bitmaps,
makes the cursor with XCreatePixmapCursor and puts it on the root window
(XDefineCursor; the clients that set none inherit it). The name is kept
in ~/.dt/cursor; 0079.dtcursor sets it at login. The Appearance pane has
a "Pointer:" menu of the cursor names; a choice runs dtcursor -set NAME.
Measured under Xvfb: the menu lists black, bullseye, busy, ... gr_root;
choosing busy wrote ~/.dt/cursor and printed "dtcursor: busy".
A medium that is pulled while it is still mounted now gets the reference's
one-button "Disk Not Ejected" warning: Motif's error dialog, the device and
its stale mountpoint in the text, the Warning sound. The desktop (dtwm,
WmMcdeDesktop.c) owns the event descriptor already; it reads each event,
asks what it says, and checks the mount table before it shows anything.
McdeSys:
- mcde_sys_disk_event_info() parses both shapes the read gives: Linux's
uevent with its NULs turned into spaces ("remove@/... ACTION=remove
DEVNAME=sdb1 ...") and NetBSD's "device-detach sd0"; 1 when the device
went away, 0 for add/change/attach, -1 on bad arguments.
- mcde_sys_disk_detached(name, mountpoint, len): looks in the mount table
for a partition of NAME (sdb takes sdb1, sd0 takes sd0a), copies the
mountpoint and unmounts it the forced way -- "umount -l" on Linux,
"umount -f" on NetBSD (disk_linux.c, disk_netbsd.c) -- but never what the
computer runs from. 0 when nothing of NAME was mounted.
- test_disk_events.c: the uevent and drvctl shapes, add/change/attach,
missing DEVNAME, the bad arguments. make check: 8/8 PASS (the seven
before and this one).
Measured under Xvfb :79 with a real ext4 loop mount at /tmp/opencode/mnt:
- start of dtwm with MCDE_DESK_TEST_DEVICE="remove@/... DEVNAME=loop0":
log "desktop: loop0 (remove)", "umount: /tmp/opencode/mnt: must be
superuser to unmount.", "desktop: loop0 was mounted at
/tmp/opencode/mnt"; the dialog is 354x167 at (335,300), OK as the only
button (docs/screenshots/leopard/Device-Removal-mcde.png).
- sudo umount /tmp/opencode/mnt, the same event again: log "desktop: loop0
(remove)" and no "was mounted"; zero dialog windows -- a device that was
put away stays quiet.
- make mcde-linux MCDE_DIRS="install lib/McdeSys programs/dtwm" exit=0;
MCDE_DIRS=plist "mcde-plist-check: ok".
MCDE_DESK_TEST_DEVICE is the test hook: one event line through the same
handler a real event takes, without a kernel. The NetBSD drvctl branch is
unchanged (t0272); the force unmount there is written for it but was not
run. Still open in t0093: the Eject item in dtfile (Selected menu,
Command+E) and the qemu device_del test in a VM.
The empty computer list was not the layout: with MCDE_NET_DEBUG the browse in
the view reports n=3, an XmList that is managed with 3 items, 136x181 and
visibleItemCount 10, and clicking a host fills the right list (SFTP, SSH,
SMB). The earlier empty window was the first browse after the start: it can
come back before avahi has resolved the services it found (only the "+"
lines, no "=" ones), and the view kept the empty result until Refresh.
Browse now asks once more after two seconds when it found no computer, and
Refresh resets that so a manual refresh may retry too. The debug line (n,
list and item count, geometry) stays behind MCDE_NET_DEBUG.
Measured (Xvfb :78, avahi-publish of mcdetest on kitt.local, HOME with an
empty Network folder, ttsession): list "N95, lotherk's MacBook Air, KITT",
note "3 computers found."; KITT selected shows Files (SFTP), Terminal (SSH),
SMB; Terminal (SSH) runs the dtterm stub with
-title KITT -e ssh -- kitt.local
-- from the network view, no shell, the host after "--". Screenshots
/tmp/opencode/netview-window.png and netview-ssh.png; make mcde-linux
MCDE_DIRS="install programs/dtfile" exit=0.
system.chestrc now has the reference's menu tree instead of the five short
menus: ToolChest (Desktop, Selected, Internet, Find, System, Help), Desktop
(Access Files, Shared Resources, Customize, Control Audio, Empty Dumpster,
Eject Media, Start ScreenSaver, Open Unix Shell, Log Out), Access Files
(home, network, another user, remote login), Shared Resources, Customize
(Windows, Desktop, Sounds, Background, Color Schemes, Screen Saver, Mouse,
Keyboard, Accessibility, Language), Internet (browser, accounts, network,
remote login), Find (files, quick find, host quick find, info search, icon
catalog), System (manager, processes, filesystems, printers, software,
displays, date, information, Utilities: xhost and console, restart/shut
down through dtbar's one question) and Help.
Every action is a program this tree has: dtsystemsettings -pane for the
settings, dtfile for files and ~/Network, dtaction for ExitSession,
DtEmptyTrash and StartDtscreen*, dtactivity, dtdiskutility, dtprintinfo,
dtinfo, dticon, dtconsole, dtremotelogin, dtbar -command power. Entries
without a counterpart (Extra Desks -- the workspace switch is dtwm's and F8
the overview, no command; License Manager; Demos; Restart Window Manager)
are left out and named in a comment at their place rather than starting
nothing.
The parser's TakeCommand stopped at the \" of an argument: a chestrc line
f.exec "dtfile -dir \"$HOME\"" gave "dtfile -dir \". It now reads the
escaped quote as part of the command.
Measured (Xvfb :77, build/mcde-root/dt): the log says "dttoolbox: 11 menus
from .../share/toolchest/system.chestrc" (no menu left unread), the
screenshots show the opened Desktop, Access Files, System, Utilities and
Help menus (/tmp/opencode/dtchest-*.png), and a click on Access Files > In
my Home Directory runs "dttoolbox: dtfile -dir "$HOME"" (stderr; dtfile is
not in this test shell's PATH). make mcde-linux MCDE_DIRS="install
programs/dttoolbox" exit=0; MCDE_DIRS=plist "mcde-plist-check: ok".
docs/MCDE-PROGRAMS.md: the T1 status says 11 menus, the mapped entries and
the quote fix; T2/T3/include and -horizontal/-icon stay open.
A .url file is a WEB_URL now (the reference sdturl.dt): a text file
whose content is a URL, ACTIONS McdeWeb,Print, ICON Dtdata,
NAME_TEMPLATE %s.url, MIME text/x-url. Measured in dtfile: test.url
shows the URL icon beside note.txt (screenshot).
test_sysload: the child that waits for a signal sets alarm(60), so a
hung or killed test no longer leaves it in pause() and blocks the
build lock with waitpid.
tools/fti2xpm.py raster the Foundation .fti vector icons into 32x32 XPM
(colour(N), bgnpolygon/endpolygon, bgnoutlinepolygon/bgnline, vertex).
Six of them -- IrixDisk, IrixCD, IrixDVD, IrixFloppy, IrixNet, IrixTape
-- are in programs/icons, Makefile.am and the PLIST. Measured: they
are thin line drawings at 32x32 and stay pale on the desktop, so
DeskIconName keeps the CDE glyphs; the icons are there for a later,
larger rendering.
The chestrc now carries the reference structure: Desktop (Access Files,
Open Home Folder, Shared Resources, Customize, Control Audio, Empty
Dumpster, Open Unix Shell, Start ScreenSaver, Lock Screen, Log Out),
Shared (Network Places, Connect to Server), Internet (Open Web Browser),
Find (Search For Files, File QuickFind, Host QuickFind, Info Search) and
System (Processes, Filesystems, Disk Utility, Printers, Software Update,
Date & Time, System Settings, Backup, Restart, Shut Down). Measured
under Xvfb: the chest lists Desktop/Selected/Find/System/Help and the
Desktop menu shows the reference entries (screenshot).
- dtwm: Dtwm*titleLeft (the 4Dwm SG_titleLeft) draws the title at the
left of the bar; the app-defaults set it and frameBorderWidth 7; the
IRIX palette IRIX.dp carries sgilightgray/sgibrightgray. Measured:
with titleLeft=1 the Terminal title stands at the left (screenshot).
- Solaris 2.6 demo sounds: 20 events converted from .au to WAV and
installed as theme Solaris (SUNWaudmo /usr/demo/SOUND/sounds); the
Sound pane lists Camouflage, Base, IRIX, Solaris and the selftest
passes for Solaris.
- the 25 OpenWindows .xbm patterns are in share/backdrops now
(OpenWin-*.xbm), so the Desktop & Screen Saver pane offers them.
disk_netbsd.c (16 calls) and mount_netbsd.c (2) are catalogued now: messages
218-233 for the new sentences (no hw.disknames, a %s partition cannot be
mounted/checked, no %s here, the name rule with blanks and 32 characters, the
new partition did not appear, no /etc/mtree, repairing permissions needs the
administrator, no mount table) and the numbers that already existed for the
same texts as on Linux (no disk %s, not mounted, the system's, erasing needs
the administrator, no drive, holds the system, mounted on, no room for the
mounts). German copy in
programs/localized/de_DE.UTF-8/msg/mcdesys.msg with the same numbers.
Verification: both files pass
x86_64--netbsd-gcc -std=gnu11 -fsyntax-only -Wall with the tree's sysroot
(they are only compiled on NetBSD). The catalog was measured through
mcde_sys_msg (the function the backend calls): LANG=C "No list of disks
(hw.disknames).", "A name has letters, digits, blanks, - and _, at most 32.",
"Only the administrator can repair permissions."; LANG=de_DE.UTF-8 "Keine
Plattenliste (hw.disknames).", "Ein Name hat Buchstaben, Ziffern, Leerzeichen,
- und _, höchstens 32.", "Nur der Administrator kann die Rechte reparieren."
make mcde-linux was refused by the build lock: another session holds it
(tools/build-lock.sh tools/userland.sh, pid 3102819) -- one build at a time,
root AGENTS.md. The two changed sources are NetBSD-only, so the Linux
library is unaffected; the Linux build, check and plist run follows when the
lock is free.
net.c (11 calls), logs.c (9), disk_linux.c (13) and mount_linux.c (1) are
messages 187-217 of mcdesys.cat now: no interfaces, no card of that name,
the network-settings administrator sentence, the address checks (IPv4,
subnet mask, router, IPv6 with prefix, DNS, domain), the DHCP client ID
rule; the log sentences (no room, no name, inotify missing, cannot be
watched/read, kqueue is a follow-up on this system, no buffer); the disk
sentence set (lsblk/udisksctl missing, no such disk, not mounted, the
system's, cannot be checked, erasing needs the administrator, the name rule,
no drive, holds the system, mounted on, no permissions list); "No
/proc/mounts." German copy with the same numbers in
programs/localized/de_DE.UTF-8/msg/mcdesys.msg.
Measured with a runner (setlocale + the public calls): LANG=C "Only the
administrator can change the network settings: click the lock first." and
"This log cannot be read."; LANG=de_DE.UTF-8 "Nur der Administrator kann die
Netzwerkeinstellungen ändern: zuerst entsperren." and "Dieses Log kann nicht
gelesen werden."
make mcde-linux MCDE_DIRS="install lib/McdeSys" and "install
programs/localized/C/msg" exit=0; "check lib/McdeSys": # FAIL: 0, exit=0;
MCDE_DIRS=plist: ok.
The NetBSD backend's 79 mcde_sys_fail calls are catalogued now: 43 new
messages (144-186) for its own sentences plus the numbers that already
existed for the same texts (cannot write, out of memory, no such service,
the administrator sentences, no account, no network card, the comments, the
lock as set/clear two messages, unknown power action). The new ones: did
not start, count/list the processes, ntp.conf and /etc/myname, read/read with
strerror, beside a file, the touchpad administrator/no touchpad/setting could
not be written, DRVGETEVENT, PKG_PATH, salt, the update source (not set, does
not answer, not allowed), the Wi-Fi scan/renew administrator sentences,
secure virtual memory, mdnsd, processes change too fast, outputs.master, the
Wi-Fi name/password rule, hashing, the server not installed (with a name),
swap encryption unknown/sysctl, the system's CPU times/disk counters/
interfaces/memory/number of processors, no place for state/value, cgd, npf,
too many settings, dhcpcd renew/start. German copy in
programs/localized/de_DE.UTF-8/msg/mcdesys.msg with the same numbers.
netbsd.c is not compiled on this Linux host: it passes
x86_64--netbsd-gcc -std=gnu11 -fsyntax-only -Wall with the tree's sysroot.
The catalog itself was measured through mcde_sys_msg (the function the
backend calls), LANG=C vs LANG=de_DE.UTF-8:
154 "Changing the touchpad needs the administrator." / "Das Touchpad zu
ändern braucht den Administrator.",
165 "... (a password has 8 to 63 characters, no quotes)." / "... (ein
Passwort hat 8 bis 63 Zeichen, keine Anführungszeichen).",
176 "The update source is not allowed: ..." / "Die Update-Quelle ist nicht
erlaubt: ...".
make mcde-linux MCDE_DIRS="install lib/McdeSys" and "install
programs/localized/C/msg" exit=0; "check lib/McdeSys": # FAIL: 0, exit=0;
MCDE_DIRS=plist: ok.
linux.c's remaining sentences are messages 107-143 of mcdesys.cat now (the
NetworkManager block was 98-106): unknown power action, no sound server and
no mixer / the mixer tells no volume / no mixer, bluetoothctl missing, the
touchpad settings are outside the desktop, the password/change/update/service
administrator sentences, apt-get cannot tell what is new, cannot read /proc,
the file system keeps no comments / no lock, read/remove/write the comment,
cannot open a file, set/clear the lock (two messages, the word is not a
parameter any more), cannot write /etc/hostname, no hostname tool,
timedatectl is not installed, no such service, the server is not installed,
avahi-browse missing, secure virtual memory / cgd / npf are NetBSD's,
/proc/stat, /proc/meminfo, /proc/net/dev, /proc/diskstats and the kernel
event socket cannot be read, the two "tells no processor/memory" sentences.
German copy in programs/localized/de_DE.UTF-8/msg/mcdesys.msg.
Measured with a runner (setlocale + the public calls): LANG=C "Cannot
write /etc/hostname: Permission denied." and "Only the administrator can
switch a service."; LANG=de_DE.UTF-8 "/etc/hostname kann nicht geschrieben
werden: Keine Berechtigung." and "Nur der Administrator kann einen Dienst
umschalten."
make mcde-linux MCDE_DIRS="install lib/McdeSys" and "install
programs/localized/C/msg" exit=0; "check lib/McdeSys": # FAIL: 0, exit=0;
MCDE_DIRS=plist: ok.
The NetworkManager block of linux.c is messages 98-106 of mcdesys.cat now:
nmcli not there / not installed (the settings cannot be changed here), only
the administrator can join a Wi-Fi network, the network name cannot be used,
NetworkManager has no settings for a card, nmcli does not tell the settings
of a connection, NetworkManager did not take the settings or could not bring
a connection up again, there is no network card of that name. German copy in
programs/localized/de_DE.UTF-8/msg/mcdesys.msg.
Measured with a runner (setlocale + the public calls):
LANG=C: "Only the administrator can join a Wi-Fi network." and
"NetworkManager has no settings for nosuchcard0."; LANG=de_DE.UTF-8: "Nur der
Administrator kann einem WLAN beitreten." and "NetworkManager hat keine
Einstellungen für nosuchcard0."
make mcde-linux MCDE_DIRS="install lib/McdeSys" and "install
programs/localized/C/msg" exit=0; "check lib/McdeSys": # FAIL: 0, exit=0;
MCDE_DIRS=plist: ok.
The rest of common.c's sentences are messages 74-97 of mcdesys.cat now: the
exec failure line, no host name, no time zone list, no such time zone, the
administrator for the time zone, cannot link, cannot replace (the same text
as message 59, reused), no command line for a process, no room for the CPU
times / memory / network counters / disk counters / process list, that is no
process to signal, the process belongs to somebody else, it is gone, cannot
signal it, no file (and no room) for the comment, no file for the lock, no
name a computer can take, no place for the time service state, cannot set the
clock. German copy in programs/localized/de_DE.UTF-8/msg/mcdesys.msg.
Measured with a runner (setlocale + the public calls): LANG=C
"\"bad name!\" is not a name a computer can take.", "There is no time zone
\"No/Such\".", "No place for the list of processes."; LANG=de_DE.UTF-8
"\"bad name!\" ist kein Name, den ein Rechner annehmen kann.", "Es gibt keine
Zeitzone \"No/Such\".", "Kein Platz für die Prozessliste."
make mcde-linux MCDE_DIRS="install lib/McdeSys" and "install
programs/localized/C/msg" exit=0; "check lib/McdeSys": # FAIL: 0, exit=0;
MCDE_DIRS=plist: ok.
events.c's five and mount.c's one mcde_sys_fail calls are messages 68-73 of
mcdesys.cat now: the kernel's event socket cannot be opened or bound, cannot
open /dev/drvctl (is the drvctl pseudo-device configured?), device events
have no source on this system, no room for the event, no room for the
mounts. German copy in
programs/localized/de_DE.UTF-8/msg/mcdesys.msg with the same numbers.
Measured with a runner (setlocale + mcde_sys_disk_event_read(-1, ...) and
mcde_sys_mounts(m, 0)): LANG=C "No room for the event." / "No room for the
mounts."; LANG=de_DE.UTF-8 "Kein Platz für das Ereignis." / "Kein Platz für
die Einhängepunkte."
make mcde-linux MCDE_DIRS="install lib/McdeSys" and "install
programs/localized/C/msg" exit=0; "check lib/McdeSys": # FAIL: 0, exit=0;
MCDE_DIRS=plist: ok.
share.c's seven and users.c's six mcde_sys_fail calls are messages 57-67 of
mcdesys.cat now: cannot write beside/into a file, cannot replace, only the
administrator can change what is shared, no folder that can be shared; no
name for an account, an account exists already, a name has no colon, only the
administrator can add/delete an account (unlock first), no such account. The
German copy in programs/localized/de_DE.UTF-8/msg/mcdesys.msg keeps the
numbers.
Measured with a runner (setlocale + mcde_sys_shares_set on a missing folder,
mcde_sys_user_delete on a missing login): LANG=C "Only the administrator can
change what is shared." and "There is no account \"nosuchuser_xyz\".";
LANG=de_DE.UTF-8 "Nur der Administrator kann ändern, was freigegeben ist."
and "Es gibt kein Konto \"nosuchuser_xyz\"."
make mcde-linux MCDE_DIRS="install lib/McdeSys" and "install
programs/localized/C/msg" exit=0; "check lib/McdeSys": # FAIL: 0, exit=0;
MCDE_DIRS=plist: ok.
printers.c's eighteen mcde_sys_fail calls are messages 43-56 of mcdesys.cat
now: no place for the printers, no CUPS (lpstat/lpadmin), CUPS did not answer
or did not take the default printer/the printer/the removal, no printer was
named, the default printer / adding / removing needs the administrator, the
printer's name and address must be plain, no mDNS browser and the browser did
not answer. German copy in
programs/localized/de_DE.UTF-8/msg/mcdesys.msg with the same numbers.
Measured with a runner (setlocale + the public calls):
LANG=C: "The printer's name and address must be plain (letters, digits, - and
_; ipp://...)." and "No printer was named."; LANG=de_DE.UTF-8: "Name und
Adresse des Druckers müssen schlicht sein (...)" and "Es wurde kein Drucker
genannt."
make mcde-linux MCDE_DIRS="install lib/McdeSys" and "install
programs/localized/C/msg" exit=0; "check lib/McdeSys": # FAIL: 0, exit=0;
MCDE_DIRS=plist: ok.
sound.c's four error sentences are messages 39-42 of mcdesys.cat: the sound
server tells no volume, there is no sound file "%s", no player is installed,
cannot start %s. The German copy in
programs/localized/de_DE.UTF-8/msg/mcdesys.msg keeps the numbers.
Measured with a runner (setlocale + mcde_sys_sound_play on a missing file):
LANG=C "There is no sound file \"/nonexistent/ding.wav\"."; LANG=de_DE.UTF-8
"Es gibt keine Tondatei \"/nonexistent/ding.wav\"."
make mcde-linux MCDE_DIRS="install lib/McdeSys" and "install
programs/localized/C/msg" exit=0; "check lib/McdeSys": # FAIL: 0, exit=0;
MCDE_DIRS=plist: ok.
backup.c's 23 mcde_sys_fail calls are messages 22-38 of mcdesys.cat now:
cannot write, the backup disk mounted somewhere else, the six
administrator sentences (set up, change, switch, back up, look into,
restore), BorgBackup missing, password too short, choose a disk, bad numbers,
crontab/dtbackup missing, no disk set up, nothing to restore, cannot go to.
The German copy in programs/localized/de_DE.UTF-8/msg/mcdesys.msg uses the
same numbers; these texts are shown in System Settings (Xft), so they carry
proper umlauts.
Measured with a runner (setlocale + the public calls):
LANG=C: "Only the administrator can set up the backup.", "Only the
administrator can switch the backup.", "Only the administrator can restore
from the backups."; LANG=de_DE.UTF-8: "Nur der Administrator kann die
Sicherung einrichten.", "... die Sicherung umschalten.", "... aus den
Sicherungen wiederherstellen."
make mcde-linux MCDE_DIRS="install lib/McdeSys" and "install
programs/localized/C/msg" exit=0; "check lib/McdeSys": FAIL 0, exit=0;
MCDE_DIRS=plist: ok.
netmount.c's twelve sentences are messages 10-21 of mcdesys.cat now: no
computer name, showmount/smbclient/sshfs/mount_afp/NFS/umount not there, no
list of shares for that kind, no address this computer can connect to, a
password that cannot be used, a scheme that is not there yet, no folder.
The German copy in programs/localized/de_DE.UTF-8/msg/mcdesys.msg keeps the
same numbers (ASCII in these low-level texts: they also reach programs
without a render table).
Measured with a small runner (setlocale + the public calls):
LANG=C: "bogus:// cannot be connected to here yet.",
"\"smb://bad host/share\" is no address this computer can connect to.",
"No folder."; LANG=de_DE.UTF-8 (localedef/LOCPATH): "bogus:// kann hier noch
nicht verbunden werden.", "\"smb://bad host/share\" ist keine Adresse, zu
der dieser Rechner verbinden kann.", "Kein Ordner."
make mcde-linux MCDE_DIRS="install lib/McdeSys", "install
programs/localized/C/msg" and "check lib/McdeSys" exit=0; MCDE_DIRS=plist:
"3487 installed names under dt/, 8682 in the PLISTs", ok.
common.c's tool runner built its sentences as format strings, so every
dialog that shows mcde_sys_error() was English. They are set 1 of
lib/McdeSys/mcdesys.msg now (9 messages: not there, cannot start, failed
with status, no pipe, no answer within N seconds, out of memory, the program
is not installed, the connector ended without an answer, cancelled), read by
lib/McdeSys/text.c (mcde_sys_msg, plain catopen/catgets; NLSPATH is set the
way DtSvc does when the session has none, from -DMCDE_DT_TOP=$(prefix)).
The German copy is programs/localized/de_DE.UTF-8/msg/mcdesys.msg, built by
msg.C.am into lib/nls/msg and listed in the PLIST (C plain, ${PLIST.nls} for
German). A library does not call setlocale; the program does.
mcdesoundd gets no catalog: its only text is the log of a background daemon,
and the system layer stays English (AGENTS.md, language point 6).
Measured: a small program (setlocale + mcde_sys_run) prints
"/nonexistent/tool is not there." and "/bin/false did not succeed
(status 1)." with LANG=C, and "/nonexistent/tool ist nicht vorhanden." /
"/bin/false war nicht erfolgreich (Status 1)." with LANG=de_DE.UTF-8
(localedef/LOCPATH). make mcde-linux MCDE_DIRS="install lib/McdeSys" and
"install programs/localized/C/msg" exit=0; MCDE_DIRS=plist: "3487 installed
names under dt/, 8682 in the PLISTs", ok.