Commit Graph
54 Commits
Author SHA1 Message Date
lotherk e5108c277d dtfile: Eject in the Selected menu and Command+E (t0093)
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".
2026-11-16 14:24:00 +00:00
lotherk 5282891426 MCDE: the disk-removed warning through the kernel's device events (t0093)
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.
2026-11-16 13:56:06 +00:00
lotherkandClaude Sonnet 5.5 53fdef60ad dtwm: F8 shows the workspaces as a grid of small screens with their windows; arrows, digit, Return or click switch (t0183, first part)
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>
2026-11-15 05:45:20 +00:00
lotherkandClaude Sonnet 5.5 12fe789f36 dtactivity: the activity window (t0091)
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>
2026-11-15 05:20:01 +00:00
lotherkandClaude Sonnet 5.5 1a42f9176e dtfile: the folder-merge question as one sentence with Stop / Merge; Return takes the default button (t0215)
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>
2026-11-15 00:55:52 +00:00
lotherkandClaude Sonnet 5.5 fdb138d436 MCDE dtlaunch: the panes of System Settings are results; dtsystemsettings -list-panes (t0185, first part)
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>
2026-11-14 22:28:06 +00:00
lotherk 647c64dc9c MCDE: the web browser as the desktop's default program (t0179)
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.
2026-11-14 15:54:22 +00:00
lotherk 892c83b207 MCDE dtfile: a copy window with bar and bytes from the child's pipe (t0155) 2026-11-14 15:33:39 +00:00
lotherk cf9ccf83a1 MCDE dtcmprefs: the calendar's settings on the shared pattern (t0149) 2026-11-14 15:08:49 +00:00
lotherk e3228b8ea1 MCDE dtimage: the picture viewer, Previous/Next, Zoom, Slideshow (t0160) 2026-11-14 15:05:02 +00:00
lotherk fc9bd26b05 MCDE dtnetutility: Info, Lookup and Netstat (t0146) 2026-11-14 14:58:28 +00:00
lotherk 95e73c7142 MCDE dtsystemsettings: the Backup pane in the reference's shape (t0175) 2026-11-14 14:53:48 +00:00
lotherk 3dbdafdaa8 MCDE dtsystemsettings: the Startup Disk pane, the volume in use marked (t0174) 2026-11-14 14:46:57 +00:00
lotherk 967e11246d MCDE dtconsole: the log viewer with an inotify watch (t0123) 2026-11-14 14:41:22 +00:00
lotherk 4fb56ec723 MCDE dtsystemsettings: System Information from McdeSys (t0188) 2026-11-14 14:36:41 +00:00
lotherk 485b103cfd MCDE dtsystemsettings: the default programs, ~/.dt/defaults (t0180) 2026-11-14 14:32:10 +00:00
lotherk 956108cbaf MCDE dtsystemsettings: Internet accounts, own services only (t0130) 2026-11-14 14:27:41 +00:00
lotherk 83447224ae MCDE dtsystemsettings: the Energy Saver pane, display sleep on dtsession (t0120) 2026-11-14 14:22:40 +00:00
lotherk 289d35c433 MCDE dtfile: the overwrite question as one sentence with Keep Both / Stop / Replace (t0156) 2026-11-14 14:16:06 +00:00
lotherk ea186a5689 MCDE dtsystemsettings: the CDs & DVDs pane, a choice per kind of medium (t0100) 2026-11-14 13:59:36 +00:00
lotherk 6f13ae499d MCDE dtsystemsettings: Parental Controls, enforced by the launcher (t0142)
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.
2026-11-14 13:53:51 +00:00
lotherk 35a2b926bc MCDE: drives on the desktop, the bar's user menu and search (t0126)
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).
2026-11-14 13:39:17 +00:00
lotherk 8ffda4001e MCDE dtsystemsettings: the Printers pane, CUPS and mDNS (t0143)
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.
2026-11-14 13:27:22 +00:00
lotherk ad1ef9d519 MCDE dtmail: the settings window, General and Viewing (t0138)
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.
2026-11-14 13:03:41 +00:00
lotherk 551577e37b MCDE dtsystemsettings: Security, three tabs (t0157)
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.
2026-11-14 12:44:32 +00:00
lotherk 9be99131a3 MCDE dtwm: the window overview, F9/F10/F11 without a compositor (t0139)
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.
2026-11-14 12:18:15 +00:00
lotherk a07194b8cd MCDE: one settings window for every program, dtpad first (t0164)
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.
2026-11-14 11:52:34 +00:00
lotherk bd32e7468b MCDE dtfile: the strip view, the fourth Finder view without 3D (t0090)
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.
2026-11-14 11:37:22 +00:00
lotherk 1542e31dae MCDE dtsystemsettings: Sound in three tabs, and the bar switch (t0163)
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.
2026-11-14 11:23:51 +00:00
lotherk 3732d59b65 MCDE dtfile: the network as a folder in the column view (t0117)
~/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.
2026-11-14 11:15:25 +00:00
lotherk 7e09c5ca02 MCDE dtdiskutility: the reference's toolbar, tabs and detail block (t0137)
The window has the toolbar of the reference -- Mount, Unmount, **Eject**,
**Verify**, **Info**, **Log**, Refresh, Unlock -- and its four tabs:
First Aid, Erase, and **RAID** and **Restore**.  Under the list, a two-column
detail block shows what the chosen disk is: Device, Mount Point, Format,
Capacity, Available, Used, all from mcde_sys_disks (the used and free values
when it is mounted).

  * Eject unmounts and says the medium can be removed.  McdeSys has no eject
    ioctl yet (CDROMEJECT/DIOCEJECT); that is named here, not hidden.
  * Verify is the First Aid page's Verify Disk; Info opens a small window
    with the same values as the detail block; Log switches to First Aid and
    opens its report ("Show details" does the same by hand).
  * The RAID and Restore tabs say what they wait for: a set is made with
    RAIDframe or ccd(4) and raidctl(8), a restore copies with dump/restore
    or dd through McdeSys; neither is built.

Measured under Xvfb with xdotool:

  - docs/screenshots/leopard/Disk-Utility-mcde.png: the toolbar, the four
    tabs, the list of the host's disk, and the detail block with
    /dev/nvme0n1p1, /boot/efi, vfat, 1.0 GB, 1.0 GB available, 10 MB used;
  - Info shows the same values in a dialog ("Disk Utility");
  - Log brings First Aid and its report back, the status line says "Log";
  - RAID shows its notice;
  - a partition that holds the system has Eject insensitive, a partition
    that is not mounted has it insensitive too.

Not built (the task's VM part): Volume reparieren (fsck -y through McdeSys,
only on an unmounted, non-system partition), RAID/ccd sets, restoring and
images (vnconfig/makefs), burning.  A VM with a spare disk is needed for
their tests; they are named in the tabs and are the follow-up task.
2026-11-14 11:08:59 +00:00
lotherk 1f653d0b32 MCDE dtbar: a Displays menu in the status area (t0141)
The bar has a monitor icon next to the network one.  Its menu is the
reference's: "Detect Displays", then how many displays RandR reports, each
monitor with its size ("screen: 1024x768", primary marked), the modes of the
first monitor ("* 1024 x 768, 0 Hz" -- the current one marked), and
"Displays Preferences..." which opens System Settings > Displays.

Choosing a mode applies it (McdeDispApply, the same library the pane uses)
and asks "Keep these display settings?  Without an answer they go back in 15
seconds" with Keep and Revert; the timer puts the old set back.  "Detect
Displays" reads RandR again and runs dtsystemsettings -apply-displays, as
Xsession.d/0071.displays does at login.  The menu reads the displays when it
opens only -- no timer, no polling.

The icon is new: programs/icons/DtScrn.t.pm (a 16x16 monitor), in the icon
list of its Makefile.

Measured under Xvfb with xdotool:

  - the menu opens with "Detect Displays", "1 display", "screen: 1024x768",
    "* 1024 x 768, 0 Hz" and "Displays Preferences..." (docs/screenshots/
    leopard/Menu-Bar-Displays-mcde.png);
  - Displays Preferences... starts dtsystemsettings and the Displays pane
    appears (1024 x 768, the monitor "screen", rotation Normal);
  - choosing the mode opens the question, and 17 seconds later the dialog is
    gone and the displays were put back (xwininfo: no "Display Settings"
    window; the mode is the one before).

The mode switch cannot be measured on a second mode here: the Xvfb screen
has one mode and refuses new ones (xrandr --newmode/--addmode: "cannot find
mode", maximum 1024x768), and changing the developer's real display is a
hazard (AGENTS.md).  So the path ran with the current mode; the apply, the
question and the revert are what was exercised.

Open: "show displays in the bar" as a switch in the Displays pane, and
rebuilding the menu on RRScreenChangeNotify instead of at open (the menu
reads no timer, but a monitor plugged in shows on the next open).
2026-11-14 11:02:00 +00:00
lotherk 4534df44a9 MCDE dtsystemsettings: Desktop & Screen Saver, with Test and Random (t0110)
Desktop and Screen Saver are one pane with the two tabs of the reference;
-pane screensaver still opens the saver's page (PaneFind gives the old id to
the pane).  The saver page has the list in two groups ("Screen Savers" and
"Pictures"), a running preview, Options..., Test, the start time in the
reference's seven steps (3/5/15/30 minutes, 1 and 2 hours, Never), the
password box and the notes for the corners and the energy pane.

  * "Use random screen saver" selects StartDtscreenRandom, a new action
    (programs/types/dtscreen.dt.src: dtscreen -mode random) that dtscreen
    resolves into one of its modes each time it starts.
  * Test starts the chosen saver fullscreen in an override-redirect window
    and stops it after eight seconds -- dtscreen has no input loop, and a
    session's saver is stopped by dtsession's lock, which a settings program
    does not have.
  * Options... writes dtscreen.<mode>.batchcount and dtscreen.<mode>.delay
    into the server's resources (where dtscreen reads them, resource.c) and
    records them in ~/.dt/screensaver; the preview restarts with them.
  * The start-time scale writes dtsession's saver timeout, as before.

Pictures are listed but not offered: dtscreen's image mode has no picture
folder source of its own, so a folder entry would write a setting nobody
reads.  "Show with clock" and the hot corners wait for a clock mode in
dtscreen and for the Expose & Spaces pane; the energy warning waits for the
Energy Saver pane (there is no DPMS time to compare with yet).  Those three
are named in the pane itself.

tools/mcde-shot.sh: DTDATABASESEARCHPATH is comma-separated now -- that is
the separator DtEnvMap uses for it; with colons DtDb stays half-loaded and
actions are not found (the preview said "Action StartDtscreenSwarm was not
found"; with commas the savers run).  The data types come with it: a dtfile
window in the test home shows the PNG and text icons instead of "??" (the
t0194 symptom).  The script also exports DTSCREENSAVERLIST as dtsession does,
through a Session() function because the list has spaces.

Measured under Xvfb with xdotool:

  - the page shows the two groups, Swarm chosen and running in the preview
    (docs/screenshots/leopard/System-Preferences-Desktop-and-Screen-Saver-
    mcde.png);
  - Test covers the screen with the saver (...-Test-mcde.png) and the pane is
    back eight seconds later;
  - Random replaces the preview's process: "dtscreen -mode swarm" became
    "dtscreen -mode random" (pgrep), and dtscreen itself reports "random
    mode chose image" when run with -mode random;
  - Options... with the delay moved writes "dtscreen.swarm.batchcount: 100"
    and "dtscreen.swarm.delay: 530000" into RESOURCE_MANAGER and
    "mode=swarm" / "batchcount=100" / "delay=530" into ~/.dt/screensaver;
  - make check: test_panes PASS (new alias checks).
2026-11-14 10:49:54 +00:00
lotherk 1cad8ea2ea MCDE dtsystemsettings: Keyboard & Mouse with three tabs (t0129)
The two panes Keyboard and Mouse are one pane with the reference's tabs --
Keyboard | Mouse | Shortcuts; -pane keyboard, -pane mouse (and -pane
shortcuts) still work and open that tab (PaneFind maps the old ids onto the
pane and ShowPane passes the id).

Keyboard: repeat, its delay and rate, key click, the kind of keyboard (auto,
PC, Mac), the try-it field, and "Modifier Keys...": a dialog with four menus
(Caps Lock, Control, Option, Command -> one of the four functions or No
Action).  The dialog writes the same ~/.dt/keyboard dtkeys reads and runs
"dtkeys auto" at once.

dtkeys gained the modifier functions: the four physical keys come out of
Lock/Control/Mod1/Mod4 and into the modifier their function asks for
(XChangeKeyboardMapping + XSetModifierMapping, Xlib only, no setxkbmap), and
it runs at login as before (Xsession.d/0072.dtkeys).  It also reads the file
without dropping its lines when the kind changes.

Mouse: as before plus the wheel's direction (buttons 4 and 5 change places,
natural scrolling; the map goes to dtsession with the rest).  How far one
turn scrolls is the program's own step -- said in the pane.

Shortcuts: the keys of the desktop in a list (name, key, where it lives,
from ~/.dt/shortcuts; Launcher=... is written).  The launcher's key is live:
type a chord, Change writes Dtlaunch*hotkey and ~/.dt/shortcuts, then
"dtlaunch -quit" (new: asks the running launcher to let go of its key and
waits until the selection has no owner) and a fresh dtlaunch grabs the new
key.  Restore Defaults puts Cmd+space back.  The other rows are a record:
their keys are dtwm's and the app-defaults', and the pane says so.

"Full keyboard access" (the reference's text boxes / all controls) is left
out: Motif's focus traversal with Tab is always there and there is no switch
to turn it into two levels.

Measured under Xvfb with xdotool:

  - Modifier Keys: Caps Lock -> Control, Apply -> ~/.dt/keyboard says
    "capslock: control"; the key map then has keycode 66 = Control_L, Lock
    empty, Control 37/66/105 (read with an Xlib program; the pane keeps the
    display alive, so Xvfb does not reset the map when dtkeys exits).
  - Shortcuts: Launcher + "Cmd+j" + Change -> RESOURCE_MANAGER has
    Dtlaunch*hotkey: Cmd+j, ~/.dt/shortcuts has Launcher=Cmd+j, the running
    launcher is replaced and Cmd+j opens it (docs/screenshots/leopard/
    System-Preferences-Keyboard-and-Mouse-Shortcuts-mcde.png shows the list
    and the note; the picture with the open launcher after Cmd+j is the same
    run).
  - Wheel: "Scrolls down when turned towards you" -> xmodmap -pp: physical
    4 -> code 5, 5 -> 4.
  - -pane mouse opens the Mouse tab.
  - make check: test_panes PASS (new alias checks).

Pictures: System-Preferences-Keyboard-and-Mouse-mcde.png (Keyboard),
...-Mouse-mcde.png, ...-Shortcuts-mcde.png.

Open: only the launcher's key is changeable at runtime; the others are a
record (dtwm and app-defaults own them); the scroll step and Full keyboard
access are left out with the reason above; the modifier dialog keeps its
size after the first open.
2026-11-14 10:26:11 +00:00
lotherk f9d42dcacd MCDE dtsystemsettings: Appearance, the four groups and the fonts (t0099)
The pane is the reference's form now: Appearance (a menu of the palettes with
the chosen palette's eight colours as a strip under it, then "In use:"),
Highlight Color (the eight colours of the active palette, written as
*highlightColor and *selectColor for programs started later), the scroll
bars, the number of recent items, font smoothing -- and the fonts, which
lose their own pane (the "fonts" id still opens Appearance, the entry is
gone from the overview).

What the pane writes is what the session reads:

  *<screen>*ColorPalette, *highlightColor, *selectColor   _DtAddToResource
  Dtwm*mcdeTitleBarDoubleClick: none|minimize             then dtwm restarts
  ~/.dt/recent.conf: applications=N, documents=N, servers=N
  ~/.config/fontconfig/conf.d/60-mcde-antialias.conf      antialias=false

dtwm gained the title-bar double click: a new resource (WmResNames.h,
WmGlobal.h, WmResource.c, default "none") and, in CheckButtonPressBuiltin
(WmCEvent.c), the double-click branch on the title -- F_Minimize or
F_Maximize instead of the move.  dtbar's Recent Items and Connect to
Server's history now read their counts from ~/.dt/recent.conf
(ItemsPush/FillRecent, ReadLines/RecentAdd).

Two things the task itself said to drop are dropped, with the reason in the
pane: Motif has no separate arrow buttons at both ends of a scroll bar and no
smooth scrolling (an animation), and a click in a Motif scroll bar pages
while the middle button jumps to the place.

Font smoothing is a fontconfig rule, not *Xft.antialias: measured here, Xft
ignores that X resource (205 grey levels with and without it), while a
<match target="font"> antialias=false rule gives 2.  The rule reaches GTK and
Qt as well (one look).

Measured under Xvfb with xdotool:

  - "Off" + Apply -> the file is written and an Xft render test in the same
    session drops from 205 distinct grey levels to 2; with the size limit 20
    the same test (size 12) gives 2, with 4 it gives 205 -- the rule holds
    only up to the size.
  - the title-bar box + Apply writes Dtwm*mcdeTitleBarDoubleClick: minimize,
    dtwm restarts, and a double click on dtpad's title bar leaves its window
    "Map State: IsUnMapped" (IsViewable before).
  - a palette choice writes *0*ColorPalette: Camouflage.dp (and dtthemesync's
    colours), the strip and the Highlight menu follow it.
  - Documents=5 with eight entries in ~/.dt/recent shows five in the bar's
    Recent Items; Servers=0 leaves the Connect to Server field at "sftp://",
    Servers=10 prefills the stored address.

Pictures: docs/screenshots/leopard/System-Preferences-Appearance-mcde.png
(the four groups) and ...-Appearance-fonts-mcde.png (scrolled to the fonts).
make check: test_panes PASS.

Open: a highlight colour reaches programs started later, not the running
ones; "Applications" has no recent list to feed; the dtwm value takes effect
when the window manager restarts (the Apply button does it); the antialias
rule is read at program start; and the fonts list is six rows inside the
scrolled pane.
2026-11-14 09:59:02 +00:00
lotherk 7bb67c2914 MCDE dtfile: a Go menu of its own, as the reference has it (t0106)
The menu bar is File, Selected, View, Go, Help now.  The Go menu carries the
reference's entries: Back (Cmd+[), Forward (Cmd+]), Enclosing Folder
(Cmd+Up), Computer, Home, Desktop, Network and Applications (Shift+Cmd+C, H,
D, K, A), Go to Folder... (Shift+Cmd+G) and Connect to Server... (Cmd+K).
Back, Forward and the places go through the window's own navigation
(_McdeNavKey, the same code the keys use), Enclosing Folder and Home are
CDE's own callbacks, Go to Folder opens the dialog of GoToFolder.c and
Connect to Server the one of Connect.c.

The keys keep working through translations_da; the entries show them as
accelerator texts only (Dtfile), so that a key is not handled twice.  The
new labels and mnemonics are in dtfile.msg (162-172).

Measured under Xvfb: the menu opens with every entry and its key
(docs/screenshots/leopard/finder-go-menu-mcde.png), "Home" takes the window
to $HOME (title "File Manager - home", the icons of ~).

Open: the File menu still carries its own Go Home, Go Up and Go To...
(the move is a second step, so that the menu-state code that names their
widgets is changed with it), "Recent Folders" and the icons in the menu are
not there (a submenu of the history and Motif's text-only menus), and the
menu's keys are the work area's translations, so they do not fire while the
focus is in the path field.
2026-11-14 09:29:06 +00:00
lotherk a819279d4d MCDE dtfile: search over folders, with the sidebar's SEARCH FOR (t0119)
A search window of its own: "Search in:" (the home folder, a path, or
"This computer"), "Name contains:", "Changed:" (any time, today, yesterday,
the past week), the findings as paths relative to the scope, and Open,
Save... and Search (Return searches too).  The walk is opendir/readdir in C
-- no index, nothing in the background -- bounded to 24 levels, 200000
entries and 500 findings, so a wrong search cannot freeze the window.

The sidebar's SEARCH FOR group is alive: Today, Yesterday and Past Week run
the search at once, and the saved searches (~/.dt/searches/NAME.search:
name=, when=, scope=) are listed under them and run with their criteria.
Save... writes such a file; "Open" goes to the finding's folder (a folder
itself is opened).

Measured under Xvfb: "Today" in a home with Documents/heute.txt (today) and
Documents/gestern.txt (yesterday) finds 2 -- Documents and
Documents/heute.txt -- in 3 entries (docs/screenshots/leopard/
Finder-Search-mcde.png); Save... writes ~/.dt/searches/search.search with
"name=", "when=today", "scope=~" (cat), and the group lists it on the next
start.

Open: "All Images", "All Movies" and "All Documents" are still grey -- they
need a type criterion through the data types (t0194); Open shows the folder,
it does not choose the finding in it; the search runs synchronously between
two redraws; and the toolbar's search field still filters the folder shown,
not the whole computer.
2026-11-14 09:18:02 +00:00
lotherk 4f558c8ae0 MCDE dtfile: the Applications folder beside the four sections (t0104)
The sidebar's sections came with t0108 (DEVICES, SHARED, PLACES, SEARCH
FOR); this adds the "Utilities" place (~/.dt/Applications/Utilities, which
dtappscan makes) and the picture of the applications folder in the icon
view: dtfile -dir ~/.dt/Applications shows the categories dtappscan made
(Accessories, Development, Graphics, Help, Internet, Office, System,
Utilities) as large icons with their names, the four sections beside them,
10 items and the free space in the status line.

Measured under Xvfb: docs/screenshots/leopard/Applications-mcde.png, with
dtappscan run in the test home first (MCDE_APPSCAN_DIRS=/nonexistent, so
only the desktop's own entries are made).  The icon view is dtfile's
default view; a per-folder memory for it is noted below.

Open from the task's checklist: the saved searches under SEARCH FOR (they
need dtfile's search, t0119; the entries are grey), a USB stick appearing
under DEVICES with an eject button (the devices are read when the window is
made; t0162 is the event), a folder's view remembered per folder, the gear
menu, and no Cover Flow (the task itself asks for a static preview view
instead).
2026-11-14 08:59:51 +00:00
lotherk 175da812bb MCDE dtsystemsettings: the overview with history and search (t0097)
The overview has the reference's toolbar now: Back and Forward for the
panes shown (a history of 16 ids, the overview itself a place in it), Show
All, and a search field on the right.  Typing keeps the panes that match --
id, label or keywords, without case -- and frames them (two pixels, etched
out), the others and their names go grey; an empty field shows all again.

The panes are the four bands in the order of GOAL.md, with the ones the
reference has and MCDE names but does not draw yet (Dock, Security, CDs &
DVDs, Energy Saver, Startup Disk, Accessibility) greyed as PANE_LATER, and
Bluetooth under Hardware, where the reference has it.  Every pane has
keywords for the search ("wlan", "uhr", "drucker", "freigaben", ...).

test_panes.c: the categories run in the order Personal, Hardware, Internet
& Network, System; the six PANE_LATER panes exist and match their own names;
the search finds what it should -- "wlan" the network, "UHR" the date and
time, "bluetooth" one pane, "xyzzy" none, "" every pane.

Measured under Xvfb: docs/screenshots/leopard/System-Preferences-0-mcde.png
(the four bands, the toolbar) and System-Preferences-0-search-mcde.png
("wlan": Network framed, all else grey); Sound -> Show All -> Back returns
to Sound (the toolbar's title follows); make check: test_panes PASS.

Open: the reference's footer with the lock and the "?" is not there yet
(each pane keeps its own Unlock...), the search has no result list under
the field, and a PANE_LATER without an icon file shows no picture.
2026-11-14 08:55:44 +00:00
lotherk 62151db414 MCDE dtfile: the sidebar in groups -- devices, shares, places, searches (t0108)
The sidebar was one flat list of seven places; it is the reference's column
of groups now, each with a head that folds: DEVICES (the mounted drives and
partitions from mcde_sys_disks, the system's own left out, a removable one
marked), SHARED (the computers mcde_sys_net_browse finds, asked for once
200 ms after the window is up so that the browse does not hold the window),
PLACES (the seven places as before) and SEARCH FOR (the reference's saved
searches, insensitive until dtfile's search exists, t0119).

A place goes there, a shared computer opens the network view, a device would
open its mount point.  The head folds its entries with the arrow in the
label, as the pane sections do.

Measured under Xvfb: the sidebar shows the four groups
(docs/screenshots/leopard/finder-home-mcde.png, dtfile in $HOME with the
icon view); "No device mounted" here because the host's only disk holds /;
SHARED lists the computers mDNS answered with (N95, KITT, Caroline's
MacBook Air) and a click on one opens the network view ("3 computers
found."); a click on Home goes to ~.

Open: the SEARCH FOR entries do nothing yet (t0119), no eject button beside
a removable device and no drag and drop of a folder into PLACES, the folded
state is not remembered, and the devices are read once when the window is
made (t0162 is the event for a stick that comes later).
2026-11-14 08:47:00 +00:00
lotherk 29129ae6e9 MCDE dtsystemsettings: Sharing, name at the top and services beside
their details (t0158)

The pane follows the reference's shape: "Computer Name:" with the field and
Edit..., the line "Computers on your local network can access this computer
at NAME.local", then the services at the left and the chosen one at the
right -- its switch, its state and the address others use (ssh,
smb://ADDR/, ADDR:/folder, afp://ADDR/ from mcde_sys_interfaces).  The
folders shared by SMB, NFS and AFP appear under the file sharing services
(Add.../Remove), and Unlock... is unchanged.

mcde_sys_hostname_set was declared and never written; it is now: the name
must be letters, digits, '.' and '-' (checked in common.c), NetBSD writes
/etc/myname and runs hostname(1), Linux /etc/hostname and hostnamectl (else
hostname(1)).  "Edit..." runs it as root (dtsystemsettings -set-hostname
NAME in the su terminal, like the time zone and the clock).

Measured under Xvfb: the pane shows the name (kitt), the .local line, the
five services, and for "File Sharing by SMB" its state "On -- others reach
it at smb://192.168.1.116/" and the Shared Folders list with Add.../Remove
(docs/screenshots/leopard/System-Preferences-Sharing-mcde.png); selecting
another service switches the page and hides the folders (Remote Login).

Open: the reference's On column as check marks (the switch is on the detail
page), per-user rights for a folder (Samba valid users/read list/write list
and the netatalk counterpart -- McdeSys would need a struct instead of the
path list), Printer, Screen and Internet Sharing entries, AppleTalk options
under "Options...", and the change of the host name was not run as root
here (no root; it writes /etc/myname and the running name).
2026-11-14 08:37:26 +00:00
lotherk 064c3aa1d3 MCDE dtfile: Connect to Server as a dialog of its own (t0147)
Command+K and the network view's "Connect to Server:" now open the
reference's dialog: "Server Address:" with the field, "+" that keeps the
address, an option menu of the servers used before, "Favorite Servers:" as
a list with Remove, and Browse (the network view, as before) and Connect
(Return).  The favourites are one address a line in ~/.dt/servers, the
history the last ten in ~/.dt/servers.recent, newest first; the field opens
with the newest.

Connect accepts sftp://, nfs:// and afp:// (an address without a scheme is
an sftp one) and mounts through the network view's parse and MountPoint +
mcde_sys_net_mount, so the mount points stay ~/Network/HOST[/NAME]; the
dialog names the reason under the field and keeps the address when it
fails, and remembers the address and goes to the folder when it works.

Measured under Xvfb with xdotool: "sftp://beispiel.local/x" typed and "+"
writes it into ~/.dt/servers (cat) and the list shows it;
"nfs://127.0.0.1/nope" and Return leaves the dialog open with "Could not
connect: /sbin/mount_nfs did not succeed (status 32)."; the picture
(docs/screenshots/leopard/Finder-Connect-to-Server-mcde.png) shows the
dialog with two favourites and the address from the history.

Open: the Recent menu is an option menu filled when it opens
(FillHistory), but a click on it did not post in the Xvfb session, so the
menu was not shown in a picture -- a cascade button outside a menu bar did
not post either.  No "?" help button, no smb:// (mount_smbfs and nsmb.conf
are a task of their own), and a server that wants a password is still the
network view's password dialog, not this one's.
2026-11-14 08:28:14 +00:00
lotherk 4affe0dc00 MCDE dtwm: Command+Tab shows the programs and switches to the next (t0115)
Command+Tab (and Shift+Command+Tab) now walks programs, not windows: the
window manager collects one entry per program (WM_CLASS, the same grouping
f.mcde_app uses) in the order of the stacking -- the focused program first,
so the first Tab is the program used before it -- and raises and focuses
the chosen program's top window.  While the switch lasts (5 s) the next Tab
walks on in the same list, as holding Command does in the reference.

A bar appears in the middle of the screen: an override-redirect window, the
palette's black, one name per program, the chosen one boxed, and it goes
away by itself (one timer, no animation, no transparency).  It is drawn
after the map: what is drawn before it is painted over by the background
(measured 2026-11-14).

The key goes through f.mcde_app switcher|switcher-prev: f.mcde_switcher is
registered and implements it, but a binding that names it is not taken --
neither Command+Tab nor Command+F9 did anything (measured), while
f.mcde_app on Command+H does.  Alt+Tab stays the window switch and
Command+` the program's next window.

Measured under Xvfb with xdotool: three programs, "n=3 sel=1
Dtsystemsettings" then a second Tab "sel=2 Dtfile" (the bar's selection
follows); Shift+Command+Tab goes back; the picture
(docs/screenshots/leopard/Command-Tab-mcde.png) shows four programs
(Dtpad, Dtsystemsettings chosen, Dtterm, Dtfile) over the file manager,
terminal and system settings.

Open: no icons (the program's icon file, not the window manager's), no Q,
H or Escape while the bar is up (they need the keyboard grab), and the bar
stays a few seconds instead of hiding on Command's release.
2026-11-14 08:14:52 +00:00
lotherk 7c9a88c6e8 MCDE dtsystemsettings: Date & Time with three tabs (t0103)
The pane is the reference's window now: the big clock, the date and the
zone, then Date & Time | Time Zone | Clock.

Date & Time: "Set date & time automatically:" with the server
(pool.ntp.org by default) and "Apply Time Service"; a month calendar with
the weekday row and < > for the months (the chosen day pressed), a time
field with "Now", an analog clock drawn on Expose and once a minute, and
"Set Date and Time".  Both root actions run in the su(1) terminal the
program already uses: dtsystemsettings -set-time EPOCH and -set-ntp on|off
SERVER.  Below: "To set date and time formats, use Language & Region." and
a button that opens that pane.

Clock: the bar's clock -- shown or not, 24-hour, seconds, weekday, date --
written to ~/.dt/clock ("show=", "format="), which dtbar reads at its next
minute (measured: format=%H:%M leaves "07:49" in the bar).

McdeSys has the system side: mcde_sys_ntp_get/set (NetBSD: ntpd=YES in
rc.conf, the pool line of ntp.conf, /etc/rc.d/ntpd start/stop; Linux:
timedatectl set-ntp and timesyncd.conf) and mcde_sys_time_set
(settimeofday(2), root).

Measured under Xvfb: the three tabs render
(docs/screenshots/leopard/System-Preferences-Date-and-Time-mcde.png,
...-Time-Zone-mcde.png, ...-Clock-mcde.png); the Clock tab writes
"show=1" and "format=%a %e %b  %H:%M" to ~/.dt/clock, and dtbar with that
file shows the chosen format.

Not run: the root paths (this session has no root, and setting the
development host's clock or switching its NTP on is a hazard).  The tests
the task asks for -- ntpd=YES in /etc/rc.conf, ntpd running, date(1)
changed -- belong in the test VM; the commands they use are the two above.
2026-11-14 07:54:06 +00:00
lotherk 014dcf3bf1 MCDE dtbar: the program's own menu before its menus (t0116)
The bar now starts with the program: a cascade named after the client's
class (WM_CLASS, else its title) and, the same way for every program, its
menu -- "About <Name>", "Preferences..." (Cmd+,), "Hide <Name>" (Cmd+H),
"Hide Others" (Option+Cmd+H), "Show All", "Quit <Name>" (Cmd+Q).  The
program's own menu bar follows, as before.

The entries reach the program through the protocol the bar already has:
About, Preferences and Quit look for the entry in _MCDE_MENU (About in Help,
Options/Preferences/Properties in File, Exit/Quit/Close) and send the bar's
_MCDE_MENU_ACTIVATE for it; a program without such an entry gets a small
dialog (About) or WM_DELETE_WINDOW on its window (Quit).  Hide and Hide
Others send WM_CHANGE_STATE with IconicState to the root (ICCCM), for the
program's windows or for every other program's.

Measured under Xvfb with xdotool: the menu of dtfile
(docs/screenshots/leopard/finder-menu-mcde.png: About Dtfile, Preferences...
Cmd+,, Hide Dtfile Cmd+H, Hide Others Option+Cmd+H, Show All, Quit Dtfile
Cmd+Q) and the same menu for dtpad with its own name; "Hide Dtfile" leaves
the window as dtwm's icon at the top left (the bar keeps its menus).

Open: the name is not bold -- CDE's app-defaults define no rendition tag and
no bold font list is chosen here; "Show All" is insensitive because dtwm
ignores WM_CHANGE_STATE NormalState (measured) and restores only from its
icon; the reference's "Services" has no MCDE mechanism and is left out.
2026-11-14 07:35:19 +00:00
lotherk 8a8445367d MCDE dtfile: Get Info, the window with the sections (t0101)
File > Get Info (Cmd+I) opens the reference's Info window instead of the
CDE permissions dialog: the name, its size and date, then sections that
open and close with a click -- General (kind, size, on disk, where,
created, modified, locked), Permissions (owner, group, everyone: read and
write, read only, none), Comment (an extended attribute) and Preview (the
miniature of McdeThumb).  One window per file manager: Cmd+I again replaces
what it shows and the sections keep their state.  The old "Change
Permissions..." item stays in the menu, without the key.

Two new McdeSys calls, because a program does not touch the file system's
specialties itself (ext/src/mcde/AGENTS.md): mcde_sys_file_comment_get/set
(user.mcde.comment on Linux, EXTATTR_NAMESPACE_USER "mcde.comment" on
NetBSD, MCDE_SYS_ENOTSUP where there are none) and
mcde_sys_file_locked_get/set (FS_IMMUTABLE_FL on Linux, chflags(2)
UF_IMMUTABLE on NetBSD; a normal user may not set it on Linux, the box then
stays as it was).  "Created" says "not known" where POSIX has no birth time
(Linux); NetBSD shows st_birthtime.

Measured under Xvfb with xdotool: Cmd+I on Bild.png opens the window with
General/Permissions/Comment/Preview (docs/screenshots/leopard/
finder-get-info-mcde.png, the comment read back from the attribute); the
Owner menu to "Read only" on a 0664 file leaves -r--rw-r-- (chmod 0464);
the Comment field saved "Wichtig" and
python3 -c "os.getxattr(..., 'user.mcde.comment')" returns b'Wichtig';
clicking "General" collapses it to ">" and the sections below move up.

Open: "Open with" and the label colours of the reference are not there yet
(the action list and a user.dt mapping are a task of their own); the
program's icon is missing in the development session (t0194, no data
types), the sections are ASCII arrows, and dtwm places the window at the
corner (the picture moves it with xdotool).
2026-11-14 07:21:00 +00:00
lotherk 1c1f6278b2 MCDE dtbar: Force Quit, one entry per program and "(not responding)" (t0133)
The dialog is the reference's: the sentence at the top, one entry per
program, the hint "You can open this window by pressing
Command+Option+Escape." at the bottom left, and the button at the right --
"Force Quit", or "Relaunch" when the chosen program is the file manager.
A question comes first: "Do you want to force <program> to quit? You will
lose any unsaved changes."

A program is its class (WM_CLASS), so its windows are one entry (dtfile
showed up three times before).  Whether it answers is the process from
_NET_WM_PID: a stopped (SIGSTOP, a debugger) or zombie process says
"(not responding)".  That test is new in McdeSys --
mcde_sys_process_stopped(), /proc/PID/stat on Linux and KERN_PROC2/p_stat
on NetBSD -- because a program never reads /proc itself
(ext/src/mcde/AGENTS.md, "the operating system is behind one layer").  The
pid is looked for three levels down from the root's children: dtpad's main
shell carries the class but not the pid, the file manager's main window
carries both (measured 2026-11-14), so the class grouping takes the pid from
whichever window of the program has one.

Ending a program: XKillClient closes its connection (it ends however it
hangs), then a local pid gets SIGTERM and, three seconds later, SIGKILL --
a stopped process cannot see the closed connection, so the signal is what
ends it.  The file manager is started again a second later.

Measured under Xvfb with xdotool (dtbar + dtfile, dtfile SIGSTOPped):
"Dtfile  (not responding)" in the list, the button says "Relaunch"
(docs/screenshots/leopard/force-quit-mcde.png); Return opens the question,
Return again confirms; the old process (pid 3692926) is gone after six
seconds and a new dtfile runs (pid 3696883).

Open: the list cannot show the program's icon or colour it red -- XmList
takes strings (the reference has icons and red "not responding"); the
dialog is placed by dtwm at the corner, the picture moves it aside with
xdotool.
2026-11-14 06:58:54 +00:00
lotherk 86d51eb931 MCDE: the Utilities folder holds the system's tools (t0105)
dtappscan sorted every X tool and every shell tool into "Utilities" beside
the desktop's own programs, so the folder said nothing about the machine.
It is now arranged as the reference's Utilities is:

  Utilities               the system's tools MCDE has: Dtterm,
                          McdeDiskUtility
  Utilities/X11           CDE's X tools (xterm, xclock, xload, xwd, xwud,
                          xdpyinfo, xlsfonts, xfd, xprop, xwininfo,
                          xclipboard, bitmap)
  Utilities/Command Line  tar, compress, du, df, grep, diff, wc, file, vi,
                          sh, the dtaction helpers
  System                  the settings (dtsystemsettings, dtstyle,
                          dtprintinfo) and the file manager's window

MakeDirs already makes the nested folders.  dtappscan -v now names each
built-in entry too (folder, action), so the arrangement can be read from the
log.

docs/MCDE-PROGRAMS.md has the role table: each of the reference's 25 tools
with the MCDE program that takes the role and its state (present, planned as
a task, decided against -- no colour management, no ODBC, no Java, no RAID
tool yet).

Measured: "dtappscan -v" lists "Utilities Dtterm", "Utilities
McdeDiskUtility", "Utilities/X11 Xterm", ..., "Utilities/Command Line
Tar"; ~/.dt/Applications/Utilities holds Dtterm, McdeDiskUtility, X11,
Command Line (docs/screenshots/leopard/Applications-Utilities-mcde.png, a
dtfile window in that folder).
2026-11-14 06:32:37 +00:00
lotherk 5cafeb0a29 MCDE dtfile: Go to Folder, the small dialog with ~ and Tab (t0107)
File > Go to Folder... (Shift+Cmd+G, the resource of the old item, its name
kept) opens the reference's dialog instead of CDE's wide "Go To" with a list
of hosts: the title "Go to Folder", "Go to the folder:", one field, Cancel
and Go (Cancel left of Go; Return goes, Escape cancels).  A column of parts,
not a form -- a form whose hidden candidate list sat between two attachments
collapsed to its minimum (measured).

The path: "~" and "~user" through getpwnam, no shell.  Tab completes from
the folder named so far: a unique name is added (and a folder gets its "/"),
otherwise the part all candidates agree on is added and the next Tab shows
the candidates in a list under the field, from which one can be taken.  A
path that is not a folder leaves the dialog open with "There is no folder of
that name." under the field; Go remembers the path in ~/.dt/last-folder, so
the next dialog starts there.

Measured under Xvfb with xdotool (home with Documents, Downloads, Bilder):
Shift+Cmd+G opens it; "~/Doc" + Tab -> "~/Documents/", Return -> the window
shows ~/Documents (docs/screenshots/leopard/finder-go-to-mcde.png);
"~/D" + Tab + Tab -> the candidates "~/Documents", "~/Downloads", a click
takes one and Return opens it (~/Downloads); "~/Nope" + Return -> the error
under the field and the dialog stays; after a Go the next dialog opens with
the last path.

Open: the dialog is placed at the screen's corner by dtwm (as the Trash
question; tried with XmNtransientFor); the CDE "Go To" code stays in the
tree for the restored-dialog path (FileMgr.c), no menu item leads to it now.
2026-11-14 06:27:10 +00:00
lotherk 8a62250be1 MCDE dtfile: Space and Escape in the column list too (t0171)
The column view's lists take the focus, so the work area's translations did
not reach them: XtOverrideTranslations on every column list binds Space and
Escape to the same McdeKey action ("peek", "peekesc"), with the window's
record as the action's parameter, as translations_da does it.

The keys also go back where they were instead of always to the work area:
the preview remembers XmGetFocusWidget() of the window before it opens and
restores that, so that the arrow keys of a column list keep moving the
selection and the preview follows it (_McdePeekPath).

Measured under Xvfb with xdotool: Cmd+3, a row chosen, Space opens the
preview; Down moves the selection to Bild-2.png and the preview changes with
it (docs/screenshots/leopard/finder-quick-look-columns-mcde.png); Escape
closes it.  In the icon view Space still opens and closes (no preview in the
picture after the second Space).
2026-11-14 06:10:32 +00:00