Commit Graph
99 Commits
Author SHA1 Message Date
lotherkandClaude Sonnet 5.5 455f5c2327 MCDE: build tools run on the build host; docs and appbuilder are options (cross build)
mkcatdefs/merge, dfiles/pmaker, the dthelp parsers' context/fclndir are
compiled with CC_FOR_BUILD; sym2num runs with KSH_FOR_BUILD; documentation
and dtappbuilder/ttsnoop (dtcodegen) are options the cross build turns off.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 11:29:16 +00:00
lotherk 1474c16a59 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 76e53b4206 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 6c98b9235d 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 1387120c78 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 c13e16700b 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 67315ef458 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 dc8dfd2cc7 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 4fb6b871b8 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 709a7866c1 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
lotherkandClaude Sonnet 5.5 c01da186a7 MCDE: dtksh is out; dterror.ds is a Motif program; dtterm keeps starting the login shell
Konrad, 2026-11-14: "was soll dtksh ueberhaupt sein... einfach ne shell von
CDE? fuck it. schmeiss das komplett raus aus MCDE."  dtksh is CDE's ksh93
with Motif bindings for scripting dialogs; its bundled ksh93 (AT&T ast's
bin/package) compiles and RUNS test programs while it builds, which a cross
build for NetBSD on a Linux host cannot do -- the reason wm/mcde did not
build for days ("cc: not found", userland-2026-11-14g.log).

- programs/dtksh removed (1204 files); not in programs/Makefile.am,
  configure.ac, the recipe (REPLACE_INTERPRETER dtksh, KSH_CC), PLIST (bin,
  lib, man page, six catalogues), msg.C.am (dtksh.cat), AGENTS.md.
- What used dtksh:
  * dterror.src, dtfile_error.cpp, types/error.ds.src: an error dialog with a
    message.  New programs/dterror/dterror.c (about 70 lines of Motif), built
    as dterror.ds: dterror.ds MESSAGE [TITLE [OK-LABEL]], the convention of
    every caller (the data types, dtopen, dtfile ModAttr.c).  dtfile_error
    was only the 'test' entry of dtfile.config and ModAttr.c's fallback; the
    entry is gone and ModAttr.c calls dterror.ds.
  * dthelpgen.dtsh: the "building help" dialog helpgen.c forked; it runs
    silently now (childPid stays -1).
  * dtprintegrate/dtlp.src: the print dialog (1711 lines of dtksh); printing
    is to come back through CUPS (tasksd t0177, t0193).  dtlp's man page is
    out of the doc build and PLIST with it.
  * The data types DTKSH_SCRIPT (*.ds) and DTKSH_CONV (*.dtsh) in dt.dt.src:
    they would have classed dterror.ds as a script.
- dtterm needs no change: lib/DtTerm/TermPrim/TermPrimSubproc.c takes /usr/bin/zsh,
  then the shell of the passwd entry, then /bin/sh, and never started dtksh.
- ksh93 stays as the NetBSD binary for the scripts that say ksh (Xsession).

Measured: make mcde-linux exit=0 (build/logs/mcde-linux-nodtksh-2026-11-14.log),
autogen picked up programs/dterror; dterror.ds under Xvfb shows the error
icon, a two-line message and one button "Understood", and exits 0 on Return.

Not in this commit: the other agents' pending dtfile edits (Search.c,
Navigation.c) and the regenerated distinfo files.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 09:12:55 +00:00
lotherk 54309406d6 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 8f5d74c5f5 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 a65cedd58c 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 cbf1edf406 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 de97c91087 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 276019ffff 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 1422052fd2 mcde/dtksh: the compiler goes into the environment, not the argument list
ksh93's bin/package takes its compiler from $CC ('case $cc in /*)') and the
absolute path passed as a bare argument did not survive the script's own parsing:
it still said 'cc: not found -- set CC=C-compiler' with the path on the command
line (build/logs/userland-2026-11-14-finish4.log:16480).  The rule now prefixes the
one command with CC=<wrapper path>, which is where the script looks first.
2026-11-14 08:06:52 +00:00
lotherk da98eef08e mcde/dtksh: the wrapper path is derived where the rule runs
KSH_CC from the recipe reached the top-level make (bmake show-var BUILD_MAKE_CMD
carries it) but not the sub-make that runs the rule -- AM_MAKEFLAGS of
programs/dtksh is automake's own and empty, and the value did not travel down
(build/logs/userland-2026-11-14-finish3.log:16459 runs without an argument).  The
rule now derives it from CWRAPPERS_CONFIG_DIR, which pkgsrc exports into every
make in the tree: the wrapper is one level beside it.  KSH_CC still wins when it
is set; a plain build keeps $CC.
2026-11-14 07:54:54 +00:00
lotherk 6398b40b08 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 1e1568005e 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 d9e761ea1e mcde/dtksh: ksh93's bin/package gets an absolute compiler path
programs/dtksh builds the ksh93 it carries.  That ksh93's bin/package wants the
compiler as an ABSOLUTE path (its own words: 'cc: not found -- set
CC=C-compiler', build/logs/userland-2026-11-14n.log:16461) and only recognises a
bare path in its arguments, not CC=<path>.  In a cross build $CC is a name
(x86_64--netbsd-gcc), so the recipe passes KSH_CC -- the compiler wrapper by its
path, which also applies the cross flags -- and the rule hands it to the script as
a bare argument.  Native builds leave KSH_CC empty and nothing changes.
2026-11-14 07:22:39 +00:00
lotherk 7e5ae467cd 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
lotherkandIceman Contributor Free 6b78021465 dtfile: Columns.c includes Mcde/Sound.h for McdeSoundEvent
The launch path calls McdeSoundEvent (Columns.c:441) without the header;
GCC 14 and later make an implicit function declaration an error in C99+.
FileMgr.c and the other callers already include it.

Seen as a warning in build/logs/mcde-host-install-2026-11-13b.log;
part of the C23 cleanup (tasksd t0170).

Co-authored-by: Iceman Contributor Free <noreply@opencode.ai>
2026-11-14 07:02:29 +00:00
lotherk 73e0d8d3bd 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 12ddff09ec 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 32ba73a160 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 92c3dc5165 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
lotherk ff5248a6de MCDE dtbar: the M menu does what it says (t0102)
Software Update... starts dtsystemsettings with -pane update (spawned
directly, no shell and no foreign text); measured under Xvfb: the Software
Update pane opens (Running/Available/New packages/Source, Check Now).

Force Quit names the program of the focused window, as the reference does
("Force Quit Dtfile"): _NET_ACTIVE_WINDOW, then the keyboard focus, then the
program whose menus the bar carries -- the first two are not set in an Xvfb
session without a window manager's active-window property, the third is
(dtbar's client window, WM_CLASS).  The item carries Cmd+Option+Esc as its
accelerator text, Log Out carries Shift+Cmd+Q.

New in the menu: "Makronix Software..." (insensitive until the package
catalogue, t0056) and "Front Panel" with Show or Hide (Cmd+Option+D,
dtaction f.toggle_frontpanel, bound in dtwm's WmResParse.c:604 and
WmResource.c:527) and Settings... (insensitive until the bar's pane, t0112).

tools/mcde-shot.sh gained MCDE_SHOT_EXTRA: a program of the session started
beside the main one, so that a picture can show dtbar with dtfile.

Evidence: docs/screenshots/leopard/apple-menu-mcde.png (M menu open, Force
Quit Dtfile); the update pane opened from the menu (/tmp/opencode/mmenu-
update2.png in this session, same commands); dtbar's menu list shows every
entry with its state.  Not exercised: Log Out, Lock Screen and the power
items (they end the session; the AGENTS list them as hazards), and the
front panel itself is not part of the Xvfb session, so the toggle's effect
was not photographed -- the action and its binding are named above.
2026-11-14 06:05:18 +00:00
lotherk b4eb4949bc MCDE dtfile: the Trash is emptied after one clear question (t0095)
The CDE "Shred File(s)" question is replaced by the reference's dialog: the
title "Empty Trash", the question with the number of objects ("Remove the 3
items in the Trash permanently?"), "You cannot undo this action." under it,
and the buttons "Empty Trash" (the default) and "Cancel"; no Help button.
The question carries the rendition tag "bold" -- CDE's app-defaults define
no rendition tags, so the tag falls back to the dialog's font (measured in
the screenshot) until a render table defines one.  The count is read from
~/.dt/Trash when the dialog opens, not from a list a view filled.

The Trash also reaches the File menu of every window (Open Trash, Empty
Trash...), which the CDE source had behind an undefined ADD_SHOW_TRASH and
whose ShowTrash still called the old five-argument handler; the menu now
compiles and calls the current one.  Shift+Cmd+Delete is the menu item's
accelerator (text in Dtfile, the key as a translation of the work area, so
that it also works with the focus in the path field).  The Trash is
initialized on first use, as the trash view does it.

Measured under Xvfb with xdotool, three objects in ~/.dt/Trash:
docs/screenshots/leopard/finder-empty-trash-mcde.png shows the dialog;
"Empty Trash" leaves ~/.dt/Trash empty (ls -A: nothing, .trashinfo gone);
"Cancel" and Escape leave all three files and .trashinfo in place.
tools/mcde-shot.sh exports DTDATABASESEARCHPATH as dtsession would.

Open: the dialog is placed in the screen's corner, not centered over the
window (dtwm's placement, tried with XmNtransientFor and XmNx/XmNy);
Motif's button order puts "Empty Trash" left of "Cancel", the reference has
Cancel left; the bold question waits for a rendition tag in the CDE theme.
2026-11-14 05:54:10 +00:00
lotherkandClaude Opus 5.5 2e54b6f3d2 MCDE dtsystemsettings: Unlock runs root without the user's environment -- su root, a fixed PATH, XAUTHORITY named
AsRoot() ran "su -m root -c CMD"; su(1): -m "Leave the environment
unmodified", so root found CMD (dtsystemsettings, dtbackup ...) through the
user's PATH -- a ~/bin/dtsystemsettings ran as root -- and HOME stayed the
user's, so root wrote ~/.dt files there (review 2026-11-13, tasksd t0079).

Now plain su (HOME and SHELL become root's), the root command sets
PATH=/sbin:/usr/sbin:/bin:/usr/bin:/usr/pkg/sbin:/usr/pkg/bin:<dt>/bin and
XAUTHORITY (the user's, or $HOME/.Xauthority, only if the path is plain) so
root still reaches the display.  On NetBSD su's -c is a login class and the
words after the login go to the shell, so the form works there as on Linux.
A command too long for the buffer is not run at all instead of cut.

Checked: dtsystemsettings builds (make mcde-linux); the generated command run
under sh with a fake dtsystemsettings first in PATH finds none
(PATH=/sbin:...:/usr/pkg/dt/bin), /tmp/pwned is not created.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-14 03:41:32 +00:00
lotherk e2981e103c MCDE dtfile: the preview's info window fits beside the list too
The folder and text previews take their width from the room beside the file
manager (Room), so the window never starts under it; before, the fixed
420 px put its left edge behind the window it belongs to, and the Open
button was half hidden.  The folder state is
docs/screenshots/leopard/finder-quick-look-folder-mcde.png (title
"Sammlung", "6 items" -- the folder's type icon is missing in the
development installation, all type icons are).

Measured with tools/mcde-shot.sh on Xvfb: the folder preview at 590 px,
width 426, ends at 1016 of the 1024 px screen; nothing of it lies under
the file manager.
2026-11-14 00:04:22 +00:00
lotherk a08599a461 MCDE dtfile: Space previews the chosen file (t0118)
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.
2026-11-13 23:59:51 +00:00
lotherkandClaude Opus 5.5 40f0cdaaee MCDE: no ssh option injection from mDNS -- McdeSys keeps only good host names, dtfile starts ssh without a shell
Review 2026-11-13 (tasksd t0076): dtfile's network view ran
system("dtterm -title '%s' -e ssh '%s' &") with the mDNS service name and
host target, and its comment said McdeSys had checked the host -- it had
not: mcde_sys_net_add() only copied it.  A host advertising _ssh._tcp with
the target "-oProxyCommand=..." reached ssh as an option, and ssh runs a
ProxyCommand through a shell.

- netmount.c mcde_sys_net_add(): GoodHost() once for every name from the
  network (no leading -, letters/digits/. - _ : only); control characters
  in the free-text service name become ?.
- NetView.c: SshTerminal() forks and execs dtterm -e ssh -- HOST, no shell,
  detached by a second fork (daemon(3) pattern); no system() is left in
  the MCDE programs.
- test_netmount (make check): 12 host names, kept or dropped as expected,
  and the control character; PASS with test_sysinfo
  (build/logs/mcde-linux-netview-2026-11-13.log; dtfile builds).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 22:38:53 +00:00
lotherkandClaude Sonnet 5.5 edb0e6949c MCDE: Mac OS X keyboard shortcuts through the desktop (Cmd+space dtlaunch, f.mcde_app, bar commands, dtterm/dtfile keys); fuse-afpfs-ng dropped from the build
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>
2026-11-13 12:05:06 +00:00
lotherkandClaude Sonnet 5.5 58f9281bb5 MCDE: System Settings > Language replaces dtstyle's language choice
language.c lists the UTF-8 locales of locale -a; 'Use for Next Login' writes
~/.dt/language, which Xsession.d/0010.language reads before the desktop starts.
Compiled and linked with make mcde-host (build/logs/mcde-host-2026-11-13c.log);
not yet run on a display.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 10:24:31 +00:00
lotherkandClaude Opus 5.5 d36d739a10 MCDE: the top bar is a hard limit for dtwm; mcde-host rebuilds substituted sources
dtwm: FixFrameValues keeps every frame below the bar (McdeBarHeight in
WmMultiHead.c): a move stops at its lower border, a resize from the top
loses the height.  Placement, maximize and snap already used
McdeExcludeBar; dragging could still cover the bar.

mcde-host.sh gave every substituted file the time of its source, so make
kept objects built before the substitution: dtsearchpath still had
/etc/dt and /usr/dt, DTDATABASESEARCHPATH lacked /usr/mdt/appconfig/types
and dtwm found no dtwm.fp -- no front panel.  Only configure.ac,
Makefile.am and *.m4 keep the source time now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 09:55:33 +00:00
lotherkandClaude Opus 5.5 9fd4818051 MCDE: the review's open points -- sound through McdeSys, dtwm plug and play, the rest
From the review of 2026-11-12's commits (the points left open in
1b524eb94):

Sound behind McdeSys (ext/src/mcde/AGENTS.md, philosophy 3): libMcdeSound
named /usr/bin/paplay, aplay, /usr/pkg/bin/audioplay and ffplay itself and
waited for the player, so mcdesoundd heard nothing while a sound played.
mcde_sys_sound_play (sound.c) takes paplay where a PulseAudio server
answers, else the backend's player (mcde_sys_player: audioplay(1) on
NetBSD, aplay(1) on Linux), started in a grandchild: no wait, no zombie.
Measured against a private PulseAudio with a null sink: OpenFolder and
TerminalBell sent back to back play at the same time (pactl list short
sink-inputs: two streams), mcdesoundd -selftest PASS, a second mcdesoundd
says "a server runs already".  The /usr/pkg/dt fallbacks of Sound.c and
dtphoto.c are gone (CDE_INSTALLATION_TOP is the prefix);
McdeSoundFile's dead buffer is gone; mcdesoundd ends the 20 bytes of a
message itself; Sound.h is installed (include/Makefile.am, PLIST).

Linking: LIBMCDESOUND and LIBTERM carry the libraries below them
(configure.ac).  Debian's libtool hands no indirect library to the
linker, which then took the installed, older libMcdeSys through
libMcdeSound's RUNPATH and failed (dtterm: undefined
mcde_sys_sound_play).

dtwm plug and play (WmMcdeDisplays.c, written 2026-11-11, uncommitted and
not compiling): the ClientData fields it uses, McdeHeadsChanged (Xinerama's
list read anew, its XineramaQueryScreens memory given back with XFree),
McdePanelMonitorsChanged (the panel centres on the main display), the
RandR events taken in WmMain.c's loop, McdeDisplaysInit after the EWMH
setup, the file in Makefile.am.  Measured on Xvfb: dtwm starts with it,
the check at login leaves the outputs as they were (xrandr before and
after: screen connected 1024x700+0+0), dtwm runs on.  Plugging itself was
not measured: Xvfb cannot change its outputs, and Xorg's dummy driver
refuses a user who is not at the console.

Smaller: dttoolbox ignores SIGCHLD from the start (set after the first
fork it missed the first child) and lost its test hook
/tmp/dttoolbox-no-home; dtfile plays OpenFolder once per folder
(FileMgr.c), not twice; dtpaint's unused variable; dttoolbox frees
XGetAtomName's string without a cast-away const.  AGENTS.md describes
McdeSound, mcdesoundd, dtphoto, dtpaint, dttoolbox and the plug and play;
the WAV tones' maker was not kept, which it says.  The two stale citations
(53b852bb2, 945da0f4c) are corrected in git notes.

Built with make mcde-host, exit 0 (build/logs/mcde-host-2026-11-13q.log).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 06:41:53 +00:00
lotherkandClaude Opus 5.5 0e81935ea0 MCDE: the bar after dtsession, its menus only for the focused program, a Network pane
Konrad, 2026-11-13: "panel fehlt, top leiste is lila", the network settings
"zu rudimentaer, keine ip config, kein dns", the global menu only while a
program that has one is in front.

The bar (and the launcher, the drop-down terminal, the login items) came
from Xsession.d, before dtsession had loaded the session's resources and
the colour server: dtbar took *background from ~/.Xdefaults (#6e1e7d, the
user's base16 theme; dtbar PID 1270788 started before dtsession 1270795).
Restarting dtbar in the running session gave the palette's colours.  Now
dtsession runs sys.sessionetc -- the first of CDE_CONFIGURATION_TOP/config
and CDE_INSTALLATION_TOP/config, as sys.session is found -- before the
user's sessionetc (SmRestore.c, StartEtc); it sources config/sessionetc.d,
where 0080.dtlaunch, 0085.dtdropdown, 0090.dtbar and 0095.loginitems moved.
The bar takes colour set 5, the programs' background, not set 6 of a menu
bar (Dtbar*secondaryColorSetId: 5; measured #c6b2a8 with Default.dp).

dtwm publishes the focused client as _NET_ACTIVE_WINDOW (EWMH, WmEwmh.c
SetNetActiveWindow from SetKeyboardFocus and where the focus is dropped);
dtbar shows a program's menus only while the active window is the menus'
owner, a dialog of it (WM_TRANSIENT_FOR) or a window of the same program
(WM_CLIENT_LEADER).  Measured on Xvfb with dtwm, dtbar, dtpad and xterm,
clicking: dtpad -> its menus, xterm -> M only, dtpad -> its menus again.

Network (dtsystemsettings/network.c, docs/reference/netconfig.txt): Show:
Network Status (a light and a sentence per card, Configure...) or one card
with the tabs TCP/IP (Using DHCP, with manual address, Manually, Off;
address, mask, router, DHCP client ID, Renew DHCP Lease; IPv6), DNS
(servers, search domains, what resolv.conf has now), Wi-Fi and Ethernet;
the lock and Apply Now as Accounts.  McdeSys mcde_sys_net_config,
_configure, _renew (replacing mcde_sys_net_dhcp, which was declared and
implemented nowhere): NetBSD one block per interface in dhcpcd.conf, as
ifconfig.if(5) recommends, sysinst's static address in ifconfig.IF read and
moved there, applied with dhcpcd -n IF (cross-compiled with the tree's
x86_64--netbsd-gcc, not run); Linux the NetworkManager profile (nmcli).
mcde_sys_interfaces took the last IPv4 address (the secondary one), now the
first.  Measured on this host, read only: the pane shows the three cards,
172.20.10.2/28 by DHCP, router 172.20.10.1, DNS 1.1.1.1, MAC, MTU 1500;
test_sysinfo (new checks: settings read, 300.1.2.3 refused) exit 0.
Nothing was applied on the development host.

From the review of 2026-11-12's commits: libDtTerm links libMcdeSound
(977a7347c made the bell call McdeSoundEvent; dtcodegen did not link); the
PLIST lacked dtphoto, dtpaint, dttoolbox, mcdesoundd, libMcdeSound, their
data and the sound themes (51 entries, from the installed tree); mcdesoundd
was started by nothing (sessionetc.d/0075.mcdesoundd) and took the
selection from a running server; dttoolbox kept only the first line of the
Selected menu and rebuilt it every 500 ms, and NewMenu returned an
uninitialised pointer past 64 menus.

Built and installed with make mcde-host MCDE_DIRS=install, exit 0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 06:26:21 +00:00
lotherk b0ac7a9d25 MCDE S4: the Sound pane lists every event of the theme
Instead of eight fixed buttons the pane reads McdeSoundCount and
McdeSoundEventName: the twenty events of the theme appear as buttons that
play through mcdesoundd (screenshot settings-sound4.png).
2026-11-12 12:44:27 +00:00
lotherk 9b57d2a773 MCDE S4 in part: a second theme, listed and switched at runtime
The theme directory is the unit: a second theme Base (the lower voice of
Camouflage) sits beside it.  The Sound pane lists the directories found
next to the current theme; a click sends McdeSoundSetTheme, which writes
the path into _MCDE_SOUND_THEME and sends _MCDE_SOUND_RELOAD; the server
reads the property and reloads (McdeSoundLoadTheme).

Measured: click on Base -> daemon log 'theme now .../Base', the next
Launch plays .../Base/launch.wav; screenshot settings-sound3.png.
2026-11-12 12:42:42 +00:00
lotherk 6834760edb MCDE S3: the Sound pane plays the desktop's events
System Settings > Sound keeps volume and mute and adds eight event buttons
(Launch, OpenFolder, Error, Warning, Beep, DeskSwitch, TerminalBell,
NewMail) that send McdeSoundEvent; McdeSoundCount/McdeSoundEventName expose
the theme's event list for the next step (a list built from the theme).

Measured: screenshot build/mcde-shots/settings-sound.png; two clicks with
xdotool on 'Launch' produce two 'Launch -> .../launch.wav (player)' lines
in the daemon's log.
2026-11-12 12:36:39 +00:00
lotherk 57d88b94b9 MCDE S2: the desktop's events play -- dtfile, dtwm, dtterm
dtfile plays OpenFolder when a directory opens (Main.c, GetNewView) and
Launch when a file starts (Columns.c, ColumnOpen); dtwm plays DeskSwitch on
ChangeToWorkspace; dtterm's bell plays TerminalBell instead of XBell and
falls back to XBell when no server runs.  The three programs link
libMcdeSound; the theme gained TerminalBell.

Measured under Xvfb with ttsession and dtwm:
  mcdesoundd: OpenFolder -> .../open_folder.wav (player)
  mcdesoundd: TerminalBell -> .../terminal_bell.wav (player)
DeskSwitch is built but not exercised (it needs a workspace switch in dtwm).
2026-11-12 12:32:14 +00:00
lotherk 71b50f0e90 MCDE S1: desktop events -- libMcdeSound, mcdesoundd, the first theme
lib/McdeSound (include/Mcde/Sound.h) reads the theme in the reference's
X-Resource form (*Launch.soundfile: launch.wav) and sends an event as a
ClientMessage to the selection owner of _MCDE_SOUND_SERVER.
programs/mcdesoundd is that server: it looks the event up, drops a repeat
within 50 ms, plays the file through paplay/aplay/audioplay (the X bell
when no player is installed) and logs the path.

The theme Camouflage carries 19 events with tones generated for MCDE (no
files from the reference), installed under share/sounds/themes.

Measured under Xvfb: mcdesoundd -selftest -> PASS; with the server running,
'Launch' and 'OpenFolder' arrive and the log names the played files.
2026-11-12 12:10:08 +00:00
lotherk 450a3aadcb dtphoto P2 in part: marquee, clear, fill, crop and the painting tools
The canvas is an editor now: rectangular marquee with a dashed outline,
Select All/None, Edit > Clear and Fill (selection or whole picture),
Image > Crop to the selection, pencil, brush, eraser, bucket, eyedropper,
line, rectangle and ellipse; every press takes a one-step snapshot for
Undo.  A demo mode draws a line, a rectangle and a fill, saves the BMP and
checks known pixels: 'dtphoto demo: PASS'; the screenshot
build/mcde-shots/dtphoto-edit.png shows the result.
2026-11-12 11:28:37 +00:00
lotherk a0ce4e5d47 dttoolbox T1: the chest, its chestrc parser, the dynamic Selected menu
A Motif window with the reference's five menus (Desktop, Selected, Find,
System, Help) read from share/toolchest/system.chestrc -- the grammar
subset Menu/f.menu/f.exec/f.checkexec.sh/f.separator/dynamic.  It owns
_SGI_TOOLCHEST_WINDOW, answers _SGI_TOOLCHEST_CONFIG, and polls the
desktop's _SGI__MENU_WINDOW rendezvous for _SGI_MENU_Selected, rebuilding
the Selected menu when the text changes (the property read asks for
AnyPropertyType: a CARDINAL window id is what xprop writes).

Measured: make mcde-linux exit=0; screenshot build/mcde-shots/dttoolbox.png;
with the property set by xprop the log says 'menu Selected published
(3 entries)'.
2026-11-12 11:08:58 +00:00
lotherk db495039af dtphoto P1: a document that opens and saves, undo, zoom, submenus
The menu file grew the submenus of the reference (Image > Mode/Adjust/
Flip/Rotate/Effects, Layer, Select > Modify/Matting, the Filter groups,
View > Preview); the parser understands sub/endsub and builds cascades.
Open and Save run through XmFileSelectionBox and BMP 24-bit, Undo restores
the one-step snapshot, View > Zoom In/Out/Fit/Actual scales the document
(nearest neighbour) and the status line shows percent and document size.

Measured under Xvfb: dtphoto -selftest testpic.bmp roundtrip.bmp -> PASS
(the saved file reopens with the same pixels; 230454 bytes), and
build/mcde-shots/dtphoto-open.png shows the picture at 100%.
2026-11-12 10:07:06 +00:00
lotherk 4f1a66f23b mcde: dtphoto and dtpaint -- the Photoshop 2.5/3.0 look, the simple paint
dtphoto (P0): the window, the menu bar from a data file (dtphoto.menu, one
file for both versions, @2.5/@3.0 lines), the toolbox in the reference order,
the status line, and the 2.5/3.0 switch; the menus File..Help, Layer only in
3.0.  Built with make mcde-linux, screenshot build/mcde-shots/dtphoto-30c.png
and dtphoto-25.png.

dtpaint (D0/D1, D2 in part): the simple paint program of MCDE -- 16 tools,
2x14 colour box, pencil/brush/eraser/line/rect/ellipse/roundrect/fill/pick,
undo, invert, flip, new, open and save BMP 24-bit.  -selftest draws a line
and flood-fills a pixmap and checks the pixels: PASS.

Both are in programs/Makefile.am and configure.ac; the menu matrix of the
Photoshop reference is docs/reference/photoshop-ui.csv (153 rows), the plan
is docs/MCDE-PROGRAMS.md (C1, C3, provenance).
2026-11-12 09:15:51 +00:00
lotherkandClaude Opus 5.5 09cd93673c mcde: the monitors move into libDtSvc, for System Settings and dtwm alike
include/Mcde/Displays.h (McdeDisp*): the arrangement arithmetic
(DtUtil2/McdeDispConf.c, test_displays now in lib/DtSvc) and reading,
setting and keeping the monitors through RandR (DtUtil2/McdeDisplays.c,
the RandR ids in the structure instead of tables of the pane).  libDtSvc
links Xrandr when configure found it; dtwm links it for the coming plug
and play.  Tested: make check in lib/DtSvc (test_displays) and
dtsystemsettings; the pane on the dummy Xorg as before (applied, back
after 16 s, kept and written).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 23:41:23 +00:00
lotherkandClaude Opus 5.5 ab79f53571 mcde: System Settings > Displays -- arrange, resolution, rotation, main display, mirror
The monitors as rectangles to drag, docked to each other; per monitor on
or off, resolution, rotation, main display (top bar and front panel);
mirroring.  RandR 1.3, set as xrandr(1) does.  Apply asks to keep the
settings and goes back by itself after 15 seconds.  MCDE remembers the
monitor (EDID id), not the socket, also while it is unplugged:
~/.dt/displays, applied at login by Xsession.d/0071.displays.

Tested: make check (test_displays, 31 cases); Xorg with the dummy
driver: -apply-displays, an unknown mode and all-off refused; in the
pane 1024x768 applied and back after 16 s, kept with Keep and written.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 23:36:27 +00:00