Commit Graph
63 Commits
Author SHA1 Message Date
lotherk 838d6f0de7 dtchat: document the adapter protocol v1 (T1.7)
Normative contract for the stdio JSON-line adapters: framing, lifecycle, hello and settings schema, core commands, adapter events, request/answer, error/fatal, bye, versioning, security, IRC and QR examples. Aligned with adapter.c, fake_adapter.c and test_adapter.c; hello timeout now 10 s.
2026-11-16 17:49:13 +00:00
lotherk b8d58fb11a dtchat: pair local peers with a SAS code
Documents the decision recorded as t0360: first contact shows a 6-digit code derived from both certificate hashes and a nonce; only after the people compare it is the pin stored. Unpaired peers may send a text request only; a changed pin blocks until re-pairing.
2026-11-16 17:01:25 +00:00
lotherk d283c85767 dtchat: TDLib 1.8.70 tdjson spike on Linux (T0.7)
TDLib builds with -DTD_ENABLE_JNI=OFF; libtdjson.so.1.8.70 is 50 MB and the build tree 537 MB. tdjson_spike starts a client without an account and getOption(version) answers 1.8.70; the authorization state is waitTdlibParameters. NetBSD is still open, so the Telegram package is Linux-first and a release gate.
2026-11-16 16:47:07 +00:00
lotherk f8b04beec1 dtchat: start the TDLib build (T0.7)
Records the exact cmake invocation, the -j4 choice and the current 48% state in /home/lotherk/tmp/dtchat-tdlib/td/build; go/no-go and the NetBSD attempt are still open.
2026-11-16 16:27:04 +00:00
lotherk fe6b91e088 dtchat: review the Phase 0 spikes so far (T0.9)
ADR and C5 now record: libtls and DNS-SD verified on Linux (NetBSD runs open), libstrophe TLS/SASL/message verified, ALSA 48k/20ms duplex verified, whatsmeow builds and emits a QR event, TDLib still building. Phase 1 proceeds on Linux; NetBSD validation is a release gate; PTT stays default; Telegram/WhatsApp remain conditional and call-less in v1.
2026-11-16 16:26:12 +00:00
lotherk ccbb275e86 dtchat: whatsmeow QR-flow spike (T0.8)
whatsmeow v0.0.0-20261116124925 and Go 1.27 build with cgo sqlite3; sqlstore + GetFirstDevice + GetQRChannel + Connect produce a 277-character QR code and a 160 KB session DB. Login and message need a spare account, so the task is paused.
2026-11-16 16:24:23 +00:00
lotherk aa6ed2ccc3 dtchat: 48 kHz/20 ms duplex audio spike on ALSA (T0.6)
ALSA default opens capture and playback simultaneously at 48k S16_LE mono with 960-frame periods and a 3840-frame buffer; 48000 frames in 1.013 s. The one-period loop underruns playback, so the real path needs a pre-filled ring buffer. hw:0,0 rejects the config; default is the entry point. NetBSD audio(4) not run; PTT stays the v1 default.
2026-11-16 16:19:47 +00:00
lotherk a89ae1a9ba dtchat: libstrophe STARTTLS/SASL/message spike (T0.5)
libstrophe 0.12.3 against a minimal fake XMPP server: TLS 1.3, SASL PLAIN, bind, session and an incoming message through xmpp_run_once() in a poll-style loop. Build needs -Wno-error=incompatible-pointer-types on GCC 16. xmpp_stanza_get_text_ptr() is the wrong accessor for element text; use xmpp_stanza_get_text() and free it.
2026-11-16 16:17:50 +00:00
lotherk ade7f3049b dtchat: DNS-SD spike on Avahi (T0.4)
_dtchat._tcp registers and resolves on IPv4/IPv6, TXT survives, the service disappears after exit. pkgsrc's avahi installs avahi-client but not the libdns_sd compat library, so the Linux backend uses avahi-client; NetBSD keeps libdns_sd. NetBSD runtime not measured.
2026-11-16 16:13:25 +00:00
lotherk dce624b11f dtchat: TLS spike on Linux, NetBSD run open (T0.3)
libretls 3.8.1: non-blocking handshake with poll, system-CA verification, self-signed rejection and a TOFU pin that matches openssl's SHA-256. NetBSD had no reachable host; the exact command and the open point are recorded in docs/reference/dtchat-spikes.txt.
2026-11-16 16:11:04 +00:00
lotherk 712d066c09 dtchat: record upstream API findings (T0.2)
Adds docs/reference/dtchat-upstream.txt with the quoted sources for libtls, libstrophe, TDLib, whatsmeow, DNS-SD, Opus, VP8, XMPP and the media crypto. Corrects the ADR: TDLib does expose call signalling (createCall/acceptCall/sendCallSignalingData/discardCall), but the media stack is the separate tgcalls; whatsmeow lists Calls as not implemented. libstrophe 0.12.3 has no MUC module; xmpp_run_once exists. DNS-SD uses txtvers, not v.
2026-11-16 16:08:02 +00:00
lotherk 15f695f874 mcde: allow dtchat's TLS, XMPP and codec libraries
dtchat needs libtls, libstrophe, libopus and optional libvpx; record the exception in AGENTS.md, the decision in docs/reference/dtchat-architecture.txt, and the program in docs/MCDE-PROGRAMS.md (C5). Tasks: tasksd scope mcde/dtchat.
2026-11-16 15:57:46 +00:00
lotherk df64a5b693 docs: remove remaining stale overlay/patch 0009/0005 references (t0085) 2026-11-15 15:54:58 +00:00
lotherk 129222a556 docs: remove dead overlay/patch references from build docs, install media and tools (t0085) 2026-11-15 15:52:48 +00:00
lotherk d17ad7a219 docs/reference/sysupgrade.txt: the 2026-11-14 reading put back, a measured section added (t0055)
My commit e52d511ec0 replaced this file instead of adding to it: `ls
docs/reference | head -40` had cut the list before this name, so I took it for
new and wrote over 211 lines of saved reading.  docs/reference/AGENTS.md is
explicit ("Correct a file by a dated note, not by silent rewriting"), so this
restores the file byte for byte from e52d511ec0^ (verified: the diff against
that commit is 53 insertions, 0 deletions) and appends what was measured
today, as section "2026-11-15: measured in this tree".

The measurements, each with its line:
- `config(1)` is comp-obsolete in this tree (src/distrib/sets/lists/comp/
  mi:4719-4720) and absent from the destdir, so KERNEL=AUTO does not merely
  "need config" -- sysupgrade stops with "Failed to determine kernel name".
- The set carries only share/examples/sysupgrade/default.conf; the
  /usr/pkg/etc/sysupgrade.conf of CONF_FILES (recipe:26) is a pkg_add action
  and shtk_config_load is fatal on a missing file
  (share/shtk/config.subr:176-181): the upgrade command must pass -c.
- pkgsrc's default.conf names the NetBSD daily snapshots, not our source.
- The release's 24 *.tar.xz sets match pkgsrc's ARCHIVE_EXTENSION (tar.xz on
  x86_64), no override needed.
- /usr/pkg/sbin/sysupgrade (17447 bytes) and shtk are in the destdir -- the
  NetBSD binary of packages.list:48.
- The package's cache is /var/cache/sysupgrade (recipe:18-20).
- No set is verified (ftp(1), tar -xp); t0078.
2026-11-15 09:04:46 +00:00
lotherk e52d511ec0 docs/reference/sysupgrade.txt: what sysupgrade 1.5 does on this tree (t0055)
packages.list:46-48 takes sysutils/sysupgrade as a binary of the makronix
set and names docs/reference/sysupgrade.txt as the reading behind it, and
docs/reference/AGENTS.md lists the file too; neither existed.  This is the
reading, done in the distfile sysupgrade-1.5.tar.gz (build/distfiles) and
pkgsrc's three patches, with the claims measured in the tree.

What it settles for t0055:
- RELEASEDIR is the architecture directory of a release (it fetches
  binary/sets/<set>.<ext> and binary/kernel/netbsd-<KERNEL>.gz under it), so
  build/obj/releasedir/amd64, not the sets directory; the sets there are
  *.tar.xz and pkgsrc's ARCHIVE_EXTENSION is tar.xz on x86_64.
- file:// is not an accepted form: an absolute path, ftp://, http://, ssh://
  (and https:// through pkgsrc's patch).  Our command has to translate
  file:///DIR to /DIR.
- KERNEL=AUTO needs config(1), which is comp-obsolete in this tree
  (src/distrib/sets/lists/comp/mi:4719-4720) and not in the destdir: it
  fails, it does not skip; KERNEL must be explicit (GENERIC on amd64).
- SETS=AUTO takes /etc/mtree/set.*, and set.makronix is one of them: the
  makronix set is fetched and unpacked with the base system.
- The configuration file does not exist on an installed system: the set
  carries share/examples/sysupgrade/default.conf, the CONF_FILES copy to
  /usr/pkg/etc/sysupgrade.conf is a pkg_add action, and shtk_config_load
  stops when the file is missing.  The command of t0055 passes -c its own.
- Nothing verifies a set (t0078's subject).

Also recorded as makronix wiki entry e00012.
2026-11-15 09:03:42 +00:00
lotherkandClaude Sonnet 5.5 55a9319ac4 keytest: Ctrl+Up, zones, Shift+Cmd+Tab, the screenshot key, Option+Cmd+H/M/W; table of 2026-11-15 completed (t0058)
All seen except: Shift+Cmd+3/4 do nothing because there is no dtscreenshot (t0222),
Ctrl+F2 is not bound (t0221), Option+Cmd+W not judged (the windows were minimized by the step before).
build/logs/mcde-keytest-2026-11-15d.log exit=0.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 06:00:01 +00:00
lotherkandClaude Sonnet 5.5 0290af4d9e sys.dtwmrc.tmsg de_DE, es_ES, fr_FR: the key lines were cut off by quoting (t0058)
Merged with the project's tool (programs/localized/util/merge, LC_ALL=C.UTF-8),
de_DE and es_ES lost F8-F11, Ctrl+Up and all lines after them because message 11
closed its quote after the F10 line; de_DE, es_ES and fr_FR lost every line
after the first f.exec "..." because the inner quotes were not escaped.  Both
fixed; all 11 locales now merge with rc=0 and no message, and the Keys sections
carry the same 56 MCDE key lines as C.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 05:57:39 +00:00
lotherkandClaude Sonnet 5.5 7f2453a8b3 MCDE shortcuts: Command+Tab is the program switcher in sys.dtwmrc too; the keytest presses plain keycodes and the table of 2026-11-15 (t0058)
4affe0dc00 changed the compiled-in key table (WmResource.c) but not the
sys.dtwmrc.tmsg files, so a session bound Cmd+Tab to f.next_key (window cycling)
and Shift+Cmd+Tab to f.prev_key.  Now f.mcde_app switcher / switcher-prev in all
three key messages of the 11 files.  SEEN (C locale, tools/mcde-keytest.sh, build/logs/mcde-keytest-2026-11-15c.log
exit=0): a box naming the program 'Dtterm' appears.

tools/mcde-keytest.sh: keys through tools/mcde-xkey.sh, a before/after screenshot
compare next to the window list, the terminal keys with a terminal focused.
docs/reference/shortcuts-test-2026-11-15.txt: key, expected, seen, verdict for the keys tried; Ctrl+F2 (the bar's menu
bar) is not bound anywhere.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 05:55:37 +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 e282d61715 docs/reference/netbsd-extattr.txt: file comments are dormant on a default NetBSD (t0200, step 1)
Read in src/: every ufs_*extattr operation answers EOPNOTSUPP until
extattrctl start has run (ufs_extattr.c:1048, :1165, :1291, :1323; started
only through ufs_extattr_autostart, :637, which needs /.attribute); FFS
does not start it at mount and no rc.d script does.  So on a default
install McdeSys' comment get/set answer MCDE_SYS_ENOTSUP ("This file system
keeps no comments"): the error mapping in netbsd.c is right, the feature does
nothing until an administrator sets it up.  The immutable-flag lock does not
depend on it.  Compile of netbsd.c with the cross gcc: clean.  Not run: no
NetBSD here (build/vm is gone).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 00:44:02 +00:00
lotherkandClaude Sonnet 5.5 e8d031cc63 dtlaunch: the clipboard history is opt-in and leaves passwords out (t0080 2')
What was copied is shown on the screen the moment the launcher opens, so a
password from a password manager sat there in clear.

- Dtlaunch*clipboardHistory, default False.  Off: nothing is asked of the
  clipboard's owner (no XFixes watch, no poll) and the hint line drops "the
  clipboard".  System Settings > Keyboard & Mouse > Shortcuts has the toggle
  "The launcher keeps a history of what was copied"; it writes the resource
  like the hot key does and restarts the launcher.
- On: a text that is new is kept only if its owner does not offer the target
  x-kde-passwordManagerHint with the value "secret" (what KeePassXC, KDE Wallet
  and others set; docs/reference/clipboard-password-hint.txt has the two
  sources and what they do not say).  An unchanged clipboard costs no second
  request.  The copy of the text is overwritten after use.

Measured (Xvfb, a small X program as the password manager, logging requests):
on: owners "ordinary-text-123" (no hint target), "hunter2-PASSWORD" (hint
"secret"), "second-ordinary-456": each got UTF8_STRING then the hint request;
the list shows the two ordinary texts, not the password.  Off (no resource):
0 requests in total, empty list.  The toggle in the real dtsystemsettings gives
the resource True, False, True; the indicator changes; the note fits.  Cross
compile (build's flags): dtlaunch.c and input.c without a warning; make check
of dtlaunch passes.  Not verified: a real password manager (the assumption
that its MIME type is an X11 target of that name is written in the reference
file), a launcher restart on a real session.  The default is the task's; one
word in dtlaunch.c's resource table turns it back.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 00:37:01 +00:00
lotherkandClaude Sonnet 5.5 26c5e01021 docs/reference/rust-cross.txt: how Rust gets to the NetBSD target (t0084, step 1)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 00:25:05 +00:00
lotherkandClaude Sonnet 5.5 7c0d3697c9 docs/reference/calendar-libs.txt: what pkgsrc has for iCalendar and what it costs MCDE (t0148, step 1)
libical 3.0.20 / 4.0.5 include glib2, icu and libxml2 unconditionally (libical4
also gobject-introspection); the sysroot has icu 93 MB, glib2 17 MB, libxml2 3 MB,
curl 4 MB -- there for other packages (icu: one, boost-libs; glib2: 15), while the
MCDE packages depend on Xft2, libjpeg-turbo and png only.  CalDAV = HTTP + XML;
www/curl and www/neon exist, no CalDAV client library by name.  Options with what
each needs; whether libical can be built without glib/ICU is NOT checked (source
not fetched).  The choice is Konrad's: it is a dependency of the whole desktop.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 23:54:39 +00:00
lotherkandClaude Sonnet 5.5 12e3dac436 docs/reference/netconfig.txt: NetBSD has no network 'location'; dhcpcd has selectors (t0131)
The base's network rc scripts and rc.conf defaults have no location/profile
concept (searched, existing files named).  dhcpcd.conf(5) has interface and ssid
blocks, profile NAME, fallback PROFILE and arping-selected profiles -- automatic
selection, no user switch.  A Location menu is therefore ours to design (ssid
blocks for Wi-Fi, or a directory per location that rewrites files etcupdate
owns); not a pane detail.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 23:53:22 +00:00
lotherkandClaude Sonnet 5.5 c6baf4eca8 docs/reference/dtmail.txt: what dtmail and libDtMail can do (t0127, step 2)
POP2/POP3/APOP/IMAP/AUTO classes are a RETRIEVAL of INBOX into the local mailbox
(append callback, retrieve_messages, ptrans_* like a fetch agent): no remote
folders, no sync, no IDLE; no TLS or STARTTLS anywhere in programs/dtmail; the
retrieval password sits in ~/.mailrc as a reversible uuencode-style encoding
(DtMailRc.C:314), no key.  Sending is the local sendmail (RFCTransport.C
launchSendmail), no SMTP client.  Consequences for the mail window are listed;
the windows' own code (RoamMenuWindow.C, SendMsgDialog.C) is not read yet.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 23:52:14 +00:00
lotherkandClaude Sonnet 5.5 a9a97a1f35 docs/reference/frontpanel.txt: what the Front Panel can be set to -- size, place, orientation, hiding (t0112)
Read in dtwm and DtUtil2: the PANEL record has 13 keywords; size is RESOLUTION
(HIGH/MEDIUM large, LOW small, MATCH_DISPLAY by screen width: 1176 HIGH, 851
MEDIUM, 512 LOW), place is PANEL_GEOMETRY (default centred at the bottom), there
is no orientation keyword (UI.c's XmNorientation are parts inside the panel) and
no auto-hide.  Not looked at: whether a user's .fp can override the shipped PANEL
record, and how dtwm is made to reread it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 23:50:56 +00:00
lotherkandClaude Sonnet 5.5 02f5ca9f48 docs/reference/login-screen.txt: dtlogin reads no user picture and has no automatic login (t0098)
The greeter (dtgreet: vgcallback.c vglogo.c vgmain.c vgutil.c vglang.c) asks for
the name in a text field (vgmain.c:197, :238); no user list, no picture, only
the Dtlogin*logo graphic.  Searches for autologin/.face/userlist/XmList in
dtgreet, dtlogin and dtsession find nothing; the man page's resources hold no
login option.  So 'Login Options' of the task is a feature dtlogin lacks, not a
setting: automatic login would bypass the password check of the program that
authenticates as root and needs a design and Konrad's agreement first.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 23:48:33 +00:00
lotherkandClaude Sonnet 5.5 bda2f2920c docs/reference/pkgdb-registration.txt: what registering the makronix set would take, measured (t0056)
The sysroot's pkgdb: 155 entries, 1423 files, 11 MB, 1.4 MB gzip.  pkg_install is
built with PREFIX=/usr/pkg, so its default database is /usr/pkg/pkgdb -- the
sysroot's own path, no relocation.  A copy rebuilt with pkg_admin rebuild lists
155 packages and finds vim, mcde, mcde-motif, fuse-afpfs-ng, flex; the owner
index (byfile.db) cannot be built on the build host (8 KB, 36151 'not on
filesystem') and has to be made on the target.  Defects to fix in the generator:
vim's relative @cwd, the build host's home directory in 67 files (3 install
scripts use it: xmlcatmgr, fontconfig, mcde), x11-links must stay out.  Options
(a) ship the entries in the set, (b) pkg_add from the medium's repository, with
what each needs; (a) is the reading.  The choice is Konrad's.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 22:50:45 +00:00
lotherkandClaude Sonnet 5.5 bf0bd544fe docs/reference/file-dialog.txt: the stock open/save dialog and how each program uses it (t0189, step 1)
What XmFileSelectionBox offers (resources, fileTypeMask values, search procs
that replace the list filling, the callback struct, the child names incl.
WORK_AREA), and the call sites of dtpad, dtphoto, dtpaint, dtsystemsettings,
dtmail and dticon with what each sets.  Findings: dtpad's Open reaches into the
box (filter text, selection text, file list), dtmail already adds its own
toggle 'Show hidden folders and files' as a child of the dialog, dticon uses
the widget class with all its labels, four programs remove the help button.
Not yet read: dtfile's Navigation.c and Columns.c (step 2); whether the
replacement is a new widget or a skin over the stock box is left open.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 22:31:31 +00:00
lotherkandClaude Sonnet 5.5 360e3f076a docs/reference/devpubd.txt: what devpubd(8) sees and what it does not (t0083)
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 21:25:02 +00:00
lotherkandClaude Sonnet 5.5 e1ac51a187 docs: what an update checks before it runs as root, and what is open (t0078)
docs/reference/update-verification.txt: no signify in the base tree, sysupgrade
and makesums verify nothing, none of 264 NetBSD packages is signed, pkg_install's
X.509/OpenPGP verification and how to sign.  UPDATING.md: the section, with the
decisions that are Konrad's named as open.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 21:15:06 +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
lotherkandClaude Sonnet 5.5 ceae177fb5 mxupgrade: upgrade the base system with one command (t0055)
sysutils/sysupgrade (the NetBSD project's binary) joins the makronix set;
mxupgrade(8) turns file:// into a path, says what comes, runs sysupgrade and
copies kernel and cgdroot.kmod to /cgdboot on an encrypted system; sysinst
writes /etc/sysupgrade.conf.  docs/reference/sysupgrade.txt has what the
decisions rest on.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 12:09:08 +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 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 eae81d0e37 shortcuts: Command+Tab switches programs now, Alt+Tab the window
The line still said "done (windows, not programs)" and named f.next_key for
Command+Tab; since 4affe0dc00 the program switcher has that key
(f.mcde_app switcher|switcher-prev) and the window switch moved to Alt+Tab,
where it always was as well (WmResource.c).
2026-11-14 08:15:55 +00:00
lotherkandClaude Sonnet 5.5 945b993f96 AGENTS.md under mobile/: 1797 -> 617 lines, checked against the tree (patches 0001-0026, no void sysroot, make src); the old texts in docs/reference
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 14:26:16 +00:00
lotherkandClaude Sonnet 5.5 1d7cc7e07f AGENTS.md under src/: sysinst 277 -> 90 lines, the rest corrected; the old texts in docs/reference
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 14:22:15 +00:00
lotherkandClaude Sonnet 5.5 f9767ef1a7 AGENTS.md of tools, vmbuild, .claude, www, ext, docs, refs: short, checked against the tree, VM scripts marked legacy; the old texts in docs/reference
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 14:13:50 +00:00
lotherkandClaude Sonnet 5.5 113e5f41ff userland.sh: pkgsrc's mk.conf includes the live pkgsrc-cross.mk.conf; ext/src/mcde/AGENTS.md short (531 -> 156 lines), the old one in docs/reference
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 14:05:46 +00:00
lotherkandClaude Sonnet 5.5 15260ce07c AGENTS.md: short; the measurements and narratives moved to docs/reference; cross and native are one build, the VM only tests
NATIVE_CC for the cross build (devel/gmp CC_FOR_BUILD was empty).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 13:57:30 +00:00
lotherkandClaude Sonnet 5.5 cbe80f8716 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 Opus 5.5 1b524eb94c 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 6373ff50fd 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 01ec19cc82 mcde: dtthemesync -- GTK, Qt, KDE and X programs take MCDE's palette
From the session's palette and font, with Motif's own colour calculation:
X resources (and the 16 terminal colours), GTK 1, GTK 2/3/4 themes with
Motif's bevels and no animation, qt5ct/qt6ct schemes and kdeglobals.  It
is also the XSETTINGS manager, so running GTK programs change with the
palette at once; System Settings runs it when a palette or font is chosen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 23:00:27 +00:00
lotherkandClaude Opus 5.5 c86243fd24 mcde: dtappscan, the installed applications by category
CDE's application manager shows a fixed list, installed or not.
dtappscan reads the desktop entries of the installed packages (Desktop
Entry Specification 1.5) and a table of the desktop's own programs, keeps
what is on the PATH, and writes CDE actions, icons (PNG to XPM) and one
folder per category in ~/.dt/Applications, at every login before the
session loads its actions.  The file manager has Applications among its
places, and the application manager opens the same folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 19:02:22 +00:00
lotherkandClaude Opus 5.5 f2e281c826 mcde: the front panel in a new order, its switch in the middle of the screen
Left of the workspace switch: Files (Home, Desktop, Documents, Downloads),
Mail (Text Editor, Calendar, Calculator, Icon Editor), Terminal (Disk
Utility, System Settings), Network (Remote Login, Sharing) and Desktop
Style with CDE's printers, applications and help in its drawer; right of
it only the running programs and the trash.  dtwm moves the panel so that
the switch stays in the middle of the screen, also when programs come and
go.  A program in a drawer is in the dock and not shown again on the
right.  dtfile shows the network for the folder ~/Network, which the panel
opens; the home folders are made at login.  Icons for the disk and the
network; dtremotelogin asks for user@computer and runs ssh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 18:49:07 +00:00
lotherkandClaude Opus 5.5 68f11cc393 mcde: backup by BorgBackup to a disk of its own, with a watcher for space
McdeSys gets the backup (lib/McdeSys/backup.c): a partition becomes the
backup disk with an encrypted repository (borg init -e repokey-blake2);
every hour root's crontab runs dtbackup run: borg create of / (and /home)
on its own file systems, lz4, then prune -- 24 hourly, 30 daily, 52
weekly, every monthly unless set otherwise (keep_* in
/etc/mcde-backup.conf, -1 keeps every one) -- and compact.  The watcher:
before and after each run, while the backup disk has less than min_free
percent free (10 unless set), the oldest backup is deleted and the space
given back; the newest is never deleted.  Listing (borg list --json) and
restoring a path into a folder (borg extract).  The passphrase lives in
/etc/mcde-backup.pass, root's alone, handed over by BORG_PASSCOMMAND.
docs/reference/borg.txt from borg 1.4.5's own documentation.

dtbackup run | status | list: the same from a shell and for cron, no X.

Measured: builds on the Linux host and compiles in the build VM; as a
user dtbackup status says no disk is set up and dtbackup run refuses.
Not measured: a real backup -- borg is not on the host and goes into the
set with the next userland.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 13:49:38 +00:00
lotherkandClaude Opus 5.5 33dcd9a72b mcde: McdeSys knows the disks, and the permissions the system should have
mcde_sys_disks lists the drives, each with its partitions: size, model,
file system, label, removable, the system's (/, /usr, /var, /home, swap),
where mounted and how full.  NetBSD: hw.disknames, dkctl getgeometry and
listwedges, atactl identify, getmntinfo, swapctl -l; Linux: lsblk -P -b.
mcde_sys_disk_mount (/media/LABEL; Linux through udisksctl),
_unmount, _check (fsck -n) and _erase (root; a drive with a system
partition or a mounted one is refused): NetBSD gpt destroy/create/add,
dkctl makewedges, newfs -O 2 or newfs_msdos -F 32; Linux sfdisk and
mkfs.ext4/vfat.  docs/reference/disks.txt.

mcde_sys_permissions compares owner, group and mode of the system's files
with the specification sysinst keeps for every installed set,
/etc/mtree/set.* (set.makronix too), and repairs them as root (mtree -e
-U).  mtree -k did not stop it from comparing sizes and checksums, so the
specification is narrowed to type, uname, gname, mode and link first.
Linux keeps no such list: not supported there.
docs/reference/permissions.txt.

Measured: on the Linux host the NVMe drive and its three partitions, all
the system's; erasing as a user refused.  In the build VM as root,
listing only: wd0 (QEMU HARDDISK, 68.7 GB) with dk0 on / and dk1 swap, cd0;
verifying the permissions reported 207 differences, all under /usr/pkg,
which that VM built itself instead of unpacking the set.  Nothing was
mounted, erased or repaired.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 13:12:14 +00:00