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>
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.
Space opens a small window beside the file manager with what is chosen: a
picture scaled to the room beside the window, the first 64 KB of a text, a
folder's icon and how much is in it, the type's icon for anything else.
Space again, Escape or the window's close button hides it, and a change of
the selection -- a click, an arrow key, the column view's list -- replaces
the content. Option+Space puts it over the whole screen through
_NET_WM_STATE_FULLSCREEN. The picture is read in the idle time through
McdeThumbRequest, one per work proc, and the window is placed beside the
one it belongs to, never over the list (dtwm does not raise on focus).
tools/mcde-shot.sh gained MCDE_SHOT_SETUP (fill the fresh test home) and
MCDE_SHOT_ACTIONS (drive the program with xdotool before the picture);
docs/screenshots/ records the states, never the reference's artwork.
Measured on Xvfb with xdotool: Space opens the preview
(docs/screenshots/leopard/finder-quick-look-mcde.png) and a text file in it
(finder-quick-look-text-mcde.png); choosing another icon replaces its title
and picture (Bild-5.png); Space and Escape close it, and without a preview
Escape still runs the two actions it replaced (DrawingAreaInput,
ManagerGadgetSelect). The column view's list keeps its own selection; the
preview follows it there too, but Space in that list is not wired yet (the
list has the focus, not the work area) -- the next step, together with a
list translation for it.
The makronix set list is regenerated (46569 entries,
build/logs/x-userland-2026-11-13d.log); mcde-host exit=0
(build/logs/mcde-host-2026-11-13c.log).
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
"Network" in the sidebar shows, in place of the work area: the
computers that announce themselves by DNS-SD (McdeSys), what the chosen
one offers -- its files by SFTP, a terminal by SSH, its NFS exports, its
SMB shares (listed; NetBSD has no SMB client that mounts) -- and
"Connect to Server:" for sftp://, nfs:// and afp:// addresses. A share
is mounted on ~/Network/HOST[/NAME] and opened in the window; a server
that wants a password gets a dialog whose field shows stars, and the
mount is tried again with it. Finding takes a few seconds and runs once
the view is drawn; going to any folder leaves the view.
Measured on Xvfb (build/mcde-shots/df-*.png): Network found the 4
computers of the LAN, by the names they give; KITT listed its SMB share
"nobody"; Connect to sftp://localhost without a key asked for the
password (nothing mounted). Through McdeSys on the host:
sftp://127.0.0.1/.../www mounted with the user's key, its files were
there, and it was unmounted again. Not measured: NFS and AFP mounts,
and anything of this on NetBSD past the build (no LAN in the VM).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A fourth view button, Columns: one column per folder from Home (or /)
down to the window's folder, as many of the deepest as fit, and on the
right a preview of what is chosen -- the type's icon, its kind (TYPE_LABEL
as words, and the MIME type), size and date. A folder chosen opens the
next column and becomes the window's folder through dtfile's own
ChangeDirectoryToParent, so title, path bar, history and the other views
follow; Back, Forward and the places rebuild the columns; a double click
on a file runs the first action of its type.
The columns are a sibling of CDE's work frame with its attachments; they
are managed before the work frame is unmanaged, with the form around held
at XmRESIZE_NONE: otherwise the window shrank to the columns' own size.
Measured on Xvfb (build/mcde-shots/df-*.png): Columns, Documents,
Projects, plan.txt -- three columns, the preview with the text icon,
"Kind: Textfile (text/plain)", 6 bytes; Back rebuilt the columns at
Documents; Icons brought the work area back; the window kept its size.
Not measured: the double click.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- A search field in the toolbar narrows the window to the names with the
text (any case); FilterFiles asks _McdeNavHidden, the text is kept per
window in Navigation.c; a new directory starts with an empty search.
- The view buttons show the window's view from the start, and the first
directory starts the history: the first window gets it without
ShowNewDirectory, so both are set once the window's data is attached.
- ChangeDir.c: the desktop folder's lock compared two empty ToolTalk paths
and refused every folder ('restricted folder' with an empty name); it
compares real paths only.
Tested on Xvfb with dtwm: Icons pressed at start, List, Documents from the
sidebar, Back to home, Forward to Documents, 're' leaves report.pdf.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- configure.ac: the C dialect (-std=gnu11 and five GCC 14 downgrades) is
configure's own, also handed to dtksh's ksh93 build (MCDE_DIALECT_CFLAGS).
- The pkgsrc placeholders folded in from wm/cde (@PREFIX@, @VARBASE@,
@PKG_SYSCONFDIR@) are configure options now: --with-logfiles-dir,
--with-config-dir, --with-local-bindir; and --with-pamdir (dtlogin,
dtsession) and --with-calendar-dir (dtcm, rpc.cmsd) replace paths that
were fixed. Defaults unchanged; the recipe passes its paths.
- dtfile: programs/dtfile/Navigation.c -- Back/Forward with a history per
window, views Icons/Small/List, places in a sidebar, free space in the
status line (statvfs). Screenshot: build/mcde-shots/dtfile-7.png.
- make mcde-linux (tools/mcde-linux.sh): the development build on this host,
every system path under build/mcde-root. tools/mcde-shot.sh: run a
program on a private Xvfb with ttsession and dtwm, empty environment and
its own HOME, take a screenshot. tools/ext-sync.sh: ext recipes into
pkgsrc/<cat>/<name>.
Measured: build/logs/mcde-linux-install3-2026-11-09.log (mcde-linux exit=0).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>