Commit Graph
117 Commits
Author SHA1 Message Date
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 b7e71a4fef mcde: AM_MAKEFLAGS forwards KSH_CC to the sub-makes
The recipe gives the top-level make KSH_CC (the compiler wrapper's path for
dtksh's ksh93), but programs/dtksh is a sub-make and did not see it: the rule ran
without the argument and bin/package stopped again at 'cc: not found -- set
CC=C-compiler' (build/logs/userland-2026-11-14-finish2.log:16461).  The other
host-tool variables are forwarded here for the same reason.
2026-11-14 07:42:52 +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 190738ab48 mcde/McdeSys: netbsd.c includes <errno.h> itself
The file uses errno, ENOATTR, ENOTSUP and EOPNOTSUPP but never included the
header; it came in transitively through the NetBSD headers of the native build.
In the cross build with the target's headers it does not, and the build stopped at
'ENOTSUP undeclared', 'errno undeclared' (build/logs/
userland-2026-11-14-finish.log:6743-6759).  A file that uses errno includes
<errno.h>.
2026-11-14 07:30:51 +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 e94183b461 mcde: lineToData is built for the host too
It is a noinst build tool that Term/Makefile.am runs while building
('.../util/lineToData: not found', build/logs/userland-2026-11-14m.log:10978).
Use the same *_FOR_BUILD override as util/tradcpp; automake does not honour
a per-target CC.

Part of the build-tool fixes for tasksd t0170.

Co-authored-by: Iceman Contributor Free <noreply@opencode.ai>
2026-11-14 07:08:07 +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
lotherkandIceman Contributor Free c004331d56 mcde: tradcpp is linked by the build host's compiler
tradcpp_CC/CFLAGS/LDFLAGS are not per-target variables automake honours,
so the generated Makefile still used the target compiler: the tool was a
NetBSD ELF and every build stopped at
'/bin/sh: ../../../../util/tradcpp/tradcpp: not found'
(build/logs/userland-2026-11-14k.log:7697).  Override the generated CC,
CPPFLAGS, CFLAGS and LDFLAGS for this build-tool sub-make with the
*_FOR_BUILD values the top Makefile.am already forwards.

Verified in the work directory: automake emits CC = $(CC_FOR_BUILD); a
host-cc build of the same objects is a Linux ELF and preprocesses -DX=1
to 1.

Fixes the remaining wm/mcde build stop (tasksd t0170).

Co-authored-by: Iceman Contributor Free <noreply@opencode.ai>
2026-11-14 06:57:33 +00:00
lotherk 855b8e0cb0 mcde: the host-tool variables are substituted even without in-tree Motif
util/tradcpp is built and run during every MCDE build, but configure only set
CC_FOR_BUILD/CFLAGS_FOR_BUILD/... inside the with_private_motif block.  With
--without-private-motif (the pkgsrc recipe) the Makefiles got empty values, and
AM_MAKEFLAGS then passed an explicit empty CC_FOR_BUILD down to the sub-makes --
clobbering the value pkgsrc's MAKE_FLAGS had given the top-level make.  tradcpp
was therefore compiled with the target compiler and could not run (build/logs/
userland-2026-11-14j.log:7715ff, and again in 14k after MAKE_FLAGS alone).

The defaults and AC_SUBSTs now stand before the Motif test (LIBS_FOR_BUILD stays
inside: it is Motif's -lXt), and the recipe gives configure the host compiler for
a cross build, since configure's own default is $CC, the target's.  tradcpp needs
no X library, so it no longer links LIBS_FOR_BUILD.
2026-11-14 06:55:24 +00:00
lotherk 8dad938d20 mcde: tradcpp is built for the build host
MCDE runs util/tradcpp while it builds (configure.ac: GENCPP=/util/tradcpp/tradcpp, used on the *.cpp.in templates).  It was compiled with the
target compiler, so the build stopped at 'lib/tt/bin/scripts': '/bin/sh:
../../../../util/tradcpp/tradcpp: not found' -- the file exists, it is a NetBSD
binary (build/logs/userland-2026-11-14j.log:7715ff).

The tree already forwards CC_FOR_BUILD/CFLAGS_FOR_BUILD/... through AM_MAKEFLAGS
(Makefile.am), but nothing used them for tradcpp; its Makefile.am now names them
for that program, and the pkgsrc recipe sets them (NATIVE_CC, and gnu17 for the
host compiler's C23 default) as the Motif recipe already did.
2026-11-14 06:46:29 +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 9d5f5a04c9 cross: flex is built without NLS, and the installed .la files lose libtool's '=' buildlink paths
Two more stops from build/logs/userland-2026-11-14h.log:

- devel/flex linked stage1flex without libintl: its gnulib decides gettext is
  needed in a cross build but adds no library, 'undefined reference to gettext'
  (log:393-398).  The target's base has no libintl, and flex's messages do not
  need translating: PKG_OPTIONS.flex= -nls, which its own option turns into
  --disable-nls (verified with show-var: CONFIGURE_ARGS carries it).
- wm/mcde stopped linking ttdbck on libXm.la: libtool had recorded a
  sysroot-relative '=<workdir>/.buildlink/lib/libpng16.la' in dependency_libs, so
  the consumer looked for <sysroot>/<workdir>/... (log:5370ff).  pkgsrc rewrites
  dependency_libs (mk/buildlink3/bsd.buildlink3.mk:859ff) but not a path starting
  with '='.  The Motif recipe's post-install gives the installed .la files the
  target's path.
2026-11-14 06:29:56 +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 db9df9c6a5 cross: flex's gnulib malloc/realloc answers, and MCDE's configure asks the host's OS
devel/flex stopped after the mk.conf-change clean: gnulib's configure cannot run
its malloc/realloc tests while cross-compiling, assumes them broken and wants
rpl_malloc/rpl_realloc, which the build does not compile ('implicit declaration
of function rpl_malloc', build/logs/userland-2026-11-14g.log:26-386).  The two
cache answers are given for the target, as the afpfs-ng recipe already does.

wm/mcde stopped in lib/tt/mini_isam: 'unknown type name u_short'.  MCDE's
configure picked its OS-specific macros from build_os -- the machine running
configure, linux-gnu here -- so the Linux branch added -D_POSIX_SOURCE, which
hides NetBSD's u_short (build/logs/userland-2026-11-14g.log:7124ff).  The OS that
decides the target's macros and sources is host_os; in a native build the two are
the same, so nothing changes there.
2026-11-14 06:21:15 +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 a22682f6ca motif: libXt is a tool dependency in every cross build, not only with modular X
The pkgsrc recipe adds TOOL_DEPENDS libXt inside `.if ${X11_TYPE} != "native"`
within the cross branch, with the reasoning that native builds get libXt through
libXmu.  That holds only when host and target are the same machine: here the wml
tools run on this host, link the target's libXt through the buildlink directory
and die on NetBSD's libc.so.12 (build/logs/userland-2026-11-14b.log:3698ff).
The dependency is unconditional in the cross branch now, and LIBS_FOR_BUILD
names the host archives it produces (9fd08ec250 and this commit).
2026-11-14 00:04:10 +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
lotherk 26d77c5ed3 MCDE: McdeThumb, the miniature pictures are shown from (t0161)
PNG, JPEG, GIF, BMP and XPM are read with libpng, libjpeg and C99 -- GIF's
LZW, BMP's rows and XPM's text are the module's own, so no library beyond
what Motif already brings.  A picture is scaled down with a box filter and
kept in $HOME/.dt/thumbs/<64|128|256>/<sha1 of real path, mtime and
size>.ppm; a cache over 50 MB is pruned by age when it is written to.  A
picture larger than 8192 x 8192 or 64 MB is refused from its header before
a byte of pixel data is read, and a JPEG is decoded at 1/2, 1/4 or 1/8 when
that still has the size the caller asks for.  McdeThumbRequest reads one
picture per Xt work proc, so a folder of photographs does not stop the
window, and McdeThumbRead/Scale is the part without X (a test needs no
display).

Measured on the build host, "make mcde-linux MCDE_DIRS='check lib/DtSvc'":
test_thumb PASS -- every format read back to its own pixels, the box
filter's means and aspect, the 8192/64 MB limits, a damaged file, and the
cache proved by its key (the source overwritten with rubbish of the same
size and mtime, the picture still returned from the PPM).  100 800 x 600
JPEGs at 64 px: 1.2 ms per decode, 100 cache files, 0.0 ms per picture
from the cache; an 11 MB 5000 x 3200 JPEG: 110 ms at 64 px.
2026-11-13 23:59:07 +00:00
lotherk 1123e1eda3 motif: wmluiltok's LDADD names the host libfl
The link took -lfl from wmluiltok_LDADD in tools/wml/Makefile, not from LEXLIB,
so the LEXLIB setting of 41bdd94470 changed nothing (build/logs/
userland-2026-11-14a.log:3678ff is the same failure).  The variable that decides
the link is overridden now.
2026-11-13 23:49:18 +00:00
lotherk 8ada7b3434 motif: wmluiltok links the bootstrap prefix's libfl, not the target's
wmluiltok is a host tool and links -lfl; -L${LOCALBASE}/lib becomes the buildlink
directory in a cross build, so the linker took the TARGET's flex library and
stopped on NetBSD's libc.so.12 against the host's libc ('errno@@GLIBC_PRIVATE ...
TLS definition ... mismatches non-TLS definition', build/logs/
userland-2026-11-13z.log:3680ff).  The path is only set for a cross build; a
native build has flex in its own prefix.
2026-11-13 23:40:06 +00:00
lotherk 44f77a7308 motif: the wml parser is regenerated from its grammar
git archive stamps every file with the commit's time, so make saw the checked-in
wmlparse.c as up to date and compiled it although wmlparse.y had changed: the
prototype fixes of a4da3c7870 were ignored and the errors named line numbers of
the old grammar (build/logs/userland-2026-11-13y.log:3660ff, the displayed line
empty).  The recipe removes the generated parser in post-extract; yacc (already
in USE_TOOLS) regenerates it.
2026-11-13 23:31:54 +00:00
lotherk a812f66848 motif: CFLAGS_FOR_BUILD is passed with :Q -- a space in MAKE_FLAGS became a make option
build/logs/userland-2026-11-13x.log:396: '/bin/make: invalid option -- '='' --
pkgsrc hands MAKE_FLAGS to make as command-line words, so CFLAGS_FOR_BUILD=-O2
-std=gnu17 split and make tried to read -std=gnu17 itself.  The variable is set
apart and passed with :Q, as the CPPFLAGS_FOR_BUILD line above already does.
2026-11-13 23:23:36 +00:00
lotherk 634fb60fde motif: wml's parser declares yylex and yyerror, and casts the token value the boolean rules pass
With the real prototypes in wml.h the grammar's boolean rules no longer compile:
they hand the token value (ATTRTRUE/ATTRFALSE, an int) to a function whose
parameter is char* -- wmlsynbld.c casts it back to long for EXCLUDE ('val ...
must be ATTRTRUE | ATTRFALSE').  The cast says so now, and the four call sites
are the only ones (grep yytknval1, yytknval2 in wmlparse.y).

The generated parser also calls yylex (wmllex.c) and yyerror (Uil.c) without a
declaration; GCC 14 and later refuse that in C99 and later, where the 1990s build
only warned (build/logs/userland-2026-11-13w.log:3620ff).
2026-11-13 23:18:04 +00:00
lotherk 80a3ea509b ext/src/mcde: the Motif recipe is tracked, and its build tools are compiled as gnu17
The bare 'Makefile' line in ext/src/mcde/.gitignore hid pkgsrc-motif/Makefile,
so that recipe lived only in the working tree -- found when the change below
could not be committed.  It is a recipe, not a generated Makefile; the negation
keeps it visible to git (pkgsrc/Makefile was force-added earlier).

The recipe now passes CFLAGS_FOR_BUILD=-O2 -std=gnu17: config/util/makestrs and
tools/wml are host tools (CC_FOR_BUILD=NATIVE_CC), this host's compiler defaults
to C23 where '()' means 'no arguments', and the fork's 1990s sources stop with
'too many arguments to function' (build/logs/userland-2026-11-13v.log:3646).
The target code is unaffected: the tree's cross gcc defaults to C17
(__STDC_VERSION__ 201710L, measured).
2026-11-13 23:09:34 +00:00
lotherk 1fc3d4dd00 motif: wml's symbol-table builder declares its arguments
wml.h declared the builders of wmlsynbld.c with empty parentheses; C23 (GCC 14
and later) reads that as 'takes no arguments', so the generated parser's calls
stopped with 'too many arguments to function' for LexIssueError,
wmlCreateEnumValue, wmlCreateCharset, wmlAddEnumSetValue,
wmlAddEnumValueAttribute and wmlAddCharsetAttribute (build/logs/
userland-2026-11-13v.log:3901ff).  The prototypes now carry the types of the
definitions in wmlsynbld.c; wmlAddCtrList and wmlAddCtrListControl have no
definition and stay as they are.
2026-11-13 23:07:49 +00:00
lotherk 102f52239e motif: makestrs' function tables carry their prototypes
makestrs.c declared two dispatch tables as 'void (*table[])()' -- unspecified
parameters -- and GCC 14 rejects the initialisers and the two-argument call
(-Wincompatible-pointer-types is an error there; build/logs/
userland-2026-11-13u.log:1267-1313).  The six header writers all take
(FILE*, File*) and the five source writers take (int), so the arrays say so.
Checked with gcc -fsyntax-only -std=gnu17 against the sysroot headers.
2026-11-13 22:59:13 +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 807a65d1d1 afpfs-ng cross-built and in the makronix set (mount_afp, afpcmd); userland.sh cross half installs into the sysroot
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-13 17:23:21 +00:00
lotherkandClaude Sonnet 5.5 550cded8e5 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 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 ddb37d6a86 Makronix's Motif: x11/mcde-motif from MCDE's motif/, wm/mcde links it
make userland stopped in the build VM (build/logs/x-userland-2026-11-13a.log:
"Makefile.am: error: required file './AUTHORS' not found", in motif/): since
081fb4c4b (2026-11-11) MCDE configures motif/ as a subpackage by default, and
pkgsrc's autoreconf -fiv of wm/mcde reached it; the last VM build (dd7c19207)
was before.  Against pkgsrc's unchanged x11/motif MCDE does not build at all
since 92e52775b (_XmMenuBarSetExported is ours).

Konrad, 2026-11-13: MCDE builds its own Motif only where it is not Makronix;
on Makronix the system's Motif comes from motif/ (configure.ac:622-626 says
so; the package did not exist).  Now:
- ext/src/mcde/pkgsrc-motif: x11/mcde-motif-2.3.8, built from the MCDE
  archive with WRKSRC motif/; pkgsrc's x11/motif recipe and PLIST otherwise
  (its 28 patches are folded in, d07ef09e1, checked with patch -R
  --dry-run: 28 of 28); CONFLICTS motif, lesstif, openmotif.
- wm/mcde: --without-private-motif and x11/mcde-motif's buildlink3.mk
  instead of mk/motif.buildlink3.mk.
- motif/Makefile.am: AUTOMAKE_OPTIONS foreign (autoreconf -fi of motif/
  exit 0 afterwards, on a copy of HEAD's motif/).
- tools: ext-sync takes ext/src/<name>/pkgsrc-<part> as
  <category>/<name>-<part>; mcde-dist writes the distinfo for both recipes
  and leaves pkgsrc-* out of the archive; the VM builds x11/mcde-motif before
  wm/mcde with the same GCC 14 settings, and a conflicting x11/motif needed
  by the old wm/mcde is removed with -f (wm/mcde is rebuilt after it);
  mk-cde.conf sets MOTIFBASE so other Motif packages take ours.
- packages.list and packages.vm.list name x11/mcde-motif.

Checked on the host with pkgsrc's bmake: x11/mcde-motif PKGNAME
mcde-motif-2.3.8, WRKSRC ${WRKDIR}/${DISTNAME}/motif; wm/mcde show-depends
"mcde-motif>=2.3.8:../../x11/mcde-motif", CONFIGURE_ARGS
--without-private-motif.  Not yet built in the VM: make userland next.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-13 07:06: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