Commit Graph
77 Commits
Author SHA1 Message Date
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
lotherkandClaude Opus 5.5 c1367c039b 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 f294b4f2ea mcde: translated key names stay in the menus, bindings stay English
What a user sees may be translated; configuration is English.  The labels
of the translated catalogs show their key names again (Strg+Einfg,
Umschalt+Einfg, ...); the bindings keep the English modifiers Xt reads.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 22:39:37 +00:00
lotherkandClaude Opus 5.5 f1b9f53690 mcde: the programs' menu shortcuts are Command shortcuts, key names English
The letter shortcuts of CDE's programs (dtpad, dtfile, dtmail, dtcm,
dticon, dtstyle, dtbuilder, the calendar, help) are Mod4 and read Cmd+X in
every language; Shift, Ctrl, Alt and Cmd are named in English everywhere.
The German, Danish and Spanish catalogs had translated the modifier in the
bindings themselves (Strg<Key>z), which Xt never understood.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 22:37:36 +00:00
lotherkandClaude Opus 5.5 1b2f0c6b58 mcde: System Settings: the kind of keyboard, and how windows take the focus
Keyboard chooses which key is Command (find out, PC, Macintosh) and runs
dtkeys at once; Mouse has "The focus follows the pointer" and "The active
window comes to the front", applied as the Style Manager applies them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 22:34:37 +00:00
lotherkandClaude Opus 5.5 15a0d09f45 mcde: the Command key -- the key left of the space bar, on every keyboard
dtkeys makes it Mod4 at login (a PC keyboard's left Alt and Windows keys
are exchanged, a Macintosh keyboard is so already; ~/.dt/keyboard chooses,
McdeSys tells a Macintosh keyboard).  Motif's text fields copy, cut, paste
and select all with Command+C/X/V/A; dtterm pastes, copies, opens and
closes tabs and switches them with Command; dtwm's switching, minimizing,
zones and full screen go by Command too.  Option is Alt, where Motif's
menu mnemonics stay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 22:29:03 +00:00
lotherkandClaude Opus 5.5 16c09a7110 mcde: dtwm snaps windows to zones, has Full Screen, and rests while moving
A monitor below the bar is three columns by two rows; dragging a window to
an edge shows a zone (or a half), sliding along the edges joins zones, and
release takes it; dropped elsewhere it gets its size back.  f.mcde_snap and
f.mcde_fullscreen, the window menu's Full Screen and Alt+Ctrl keys in all
locales.  The move loop polled the pointer without end when the server was
not grabbed (177 CPU ticks in 3 s with a window held still), now it waits.
Focus follows the pointer without raising by default, as session
resources the Style Manager changes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 22:15:59 +00:00
lotherkandClaude Opus 5.5 311733af5e mcde: build its own Motif (motif/) unless told not to; Xft renditions load
--with-private-motif (the default) builds motif/ with the options of
pkgsrc x11/motif and MCDE's C dialect and installs libXm, libMrm, libUil
and uil in ${prefix}/lib, for MCDE's programs; --without-private-motif
links the system's (Makronix: x11/motif from motif/, next).  Motif fixes:
<string.h> in XpmI.h on every system, and an Xft rendition that came with
a core font from the resources is loaded all the same -- before, it kept
no Xft font and XmStringExtent read through a NULL pointer
(dtsystemsettings crashed at start).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 20:36:58 +00:00
lotherkandClaude Opus 5.5 ee91a9ffbc mcde: readable computer names in the network view; Remote Login's title
The names the computers announce are UTF-8; CDE's ISO 8859-1 interface
fonts showed a typographic quote as three wrong characters.  The usual
punctuation becomes ASCII before it is shown.  dtremotelogin names its
window "Remote Login", then after the computer, with an xterm title
sequence.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 19:20:31 +00:00
lotherkandClaude Opus 5.5 d95f0fc8af 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 43305571ac 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 6d6f37c40c mcde: dtwm: Always on Top, for any number of windows
The window menu has "Always on Top" (f.mcde_above), a toggle with a
check mark, in sys.dtwmrc of every locale and in the built-in menu.  The
flag is per window and is also _NET_WM_STATE_ABOVE; every raise of another
window, a new window and a workspace switch raise the windows kept on top
again, lowest first.  Upstream's single topClient, raised again on every
VisibilityNotify, is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 17:53:15 +00:00
lotherkandClaude Opus 5.5 2f38a94a53 mcde: System Settings: Backup
The pane for the backup: Back Up Automatically, every hour; the backup
disk with Choose Disk... -- the partitions that do not hold the system,
and a password, twice, whose fields show stars, that encrypts the
backups (a reminder to keep it safe follows); when the last backup ran
and how it ended; Back Up Now, which runs dtbackup in a terminal where it
shows what it does; Restore..., the backups newest last and a path to
bring back into ~/Restored; how many hourly, daily and weekly backups
are kept, every monthly one or not, and the free space in percent below
which the oldest go.  As a user it shows and offers Unlock....

Measured on Xvfb as a user (build/mcde-shots/desk-0.png): no disk, no
backup yet, the defaults 24/30/52, every monthly, 10 %, all greyed but
Back Up Now and Unlock....  Not measured: setting up, running and
restoring (borg comes into the set with the next userland).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 13:54:27 +00:00
lotherkandClaude Opus 5.5 1d71a2d14d mcde: dtterm shows the tab bar only when there are tabs
With one tab the window shows the terminal alone.  XmTabStack places its
tab box whether it is managed or not (Motif 2.3.8, TabStack.c: PickSizes,
Layout), so the stack now sits in a form, and while there is a single
tab its top is moved up by the tab box's height: the bar lies above the
window and X clips it.  The second tab brings it back; closing to one
takes it away again (after the page is really destroyed).

Measured on Xvfb (build/mcde-shots/tabbar-*.png): one tab, no bar;
Ctrl+Shift+T, two tabs with the bar; Ctrl+Shift+W, one tab, no bar.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 13:51:59 +00:00
lotherkandClaude Opus 5.5 c8e8587f9b 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 5eee8d5d8f mcde: dtdiskutility, the disks of the computer
A program of its own: the drives on the left, each followed by its
partitions (label, or where mounted, and size); on the right the chosen
one's name, model, device, capacity, file system, mount point, used and
available, and a bar of how full it is; below two pages.  First Aid:
Verify Disk (fsck -n, changes nothing), Verify Permissions and Repair
Permissions (the system's files against /etc/mtree/set.*), with their
report.  Erase: a name and a format -- NetBSD FFS, MS-DOS FAT32, Linux
ext4 -- for a whole drive, after a warning that names the drive and says
everything on it is lost; a drive that holds the system is never offered.
The toolbar mounts and unmounts.  As a user it shows and verifies, and
Unlock... starts it again as root under su in a terminal.  All through
McdeSys.

Measured on Xvfb as a user (build/mcde-shots/du-*.png): the host's NVMe
drive with /boot/efi, /boot and the crypto partition; /boot chosen showed
ext4, 318 MB used, 603 MB available, "Holds the system" and the bar;
the Erase page offers the three formats and erases nothing for a
partition.  Not measured: mounting, verifying, erasing, repairing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 13:27:26 +00:00
lotherkandClaude Opus 5.5 6de349e604 mcde: dtfile: Network, a browser for the computers around
"Network" in the sidebar shows, in place of the work area: the
computers that announce themselves by DNS-SD (McdeSys), what the chosen
one offers -- its files by SFTP, a terminal by SSH, its NFS exports, its
SMB shares (listed; NetBSD has no SMB client that mounts) -- and
"Connect to Server:" for sftp://, nfs:// and afp:// addresses.  A share
is mounted on ~/Network/HOST[/NAME] and opened in the window; a server
that wants a password gets a dialog whose field shows stars, and the
mount is tried again with it.  Finding takes a few seconds and runs once
the view is drawn; going to any folder leaves the view.

Measured on Xvfb (build/mcde-shots/df-*.png): Network found the 4
computers of the LAN, by the names they give; KITT listed its SMB share
"nobody"; Connect to sftp://localhost without a key asked for the
password (nothing mounted).  Through McdeSys on the host:
sftp://127.0.0.1/.../www mounted with the user's key, its files were
there, and it was unmounted again.  Not measured: NFS and AFP mounts,
and anything of this on NetBSD past the build (no LAN in the VM).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 12:54:19 +00:00
lotherkandClaude Opus 5.5 64bfd2048f mcde: Sharing in System Settings: SSH, SMB, NFS, AFP, AppleTalk
McdeSys gets the services that let others in (mcde_sys_service_state,
mcde_sys_service_set) and one list of shared folders for SMB, NFS and AFP
(mcde_sys_shares, mcde_sys_shares_set: /etc/mcde-shares, and a block
between "# MCDE shares begin" and "... end" in exports, smb.conf and
afp.conf; the rest of each file stays as written).  NetBSD switches
rc.conf and runs the rc.d scripts -- sshd; rpcbind, mountd, nfsd and
nfslocking for NFS; samba, netatalk, atalkd and papd from pkgsrc, whose
example rc.d scripts are copied to /etc/rc.d first, as PKG_RCD_SCRIPTS=YES
would.  Linux uses systemctl (ssh, smbd and nmbd, nfs-server, netatalk;
no AppleTalk).  NetBSD's kernel has AppleTalk (GENERIC: options NETATALK)
and pkgsrc's netatalk4 builds atalkd on NetBSD.  docs/reference/sharing.txt.

The Sharing pane (Internet & Network) shows each service with its switch
and how others reach it (ssh host, smb://host/, host:/folder,
afp://host/), and the shared folders with Add and Remove; as a user it
offers Unlock..., as Accounts does.

Measured: on the Linux host, read only: ssh, smb, nfs installed, enabled,
running; afp and appletalk not installed (the pane on Xvfb says so).  In
the build VM as root: NFS on started rpcbind, mountd, nfsd, statd, lockd;
sharing /tmp/mcdeshare made showmount -e list it for Everyone; NFS off
stopped them; the VM's rc.conf was restored after.  First found there:
mountd will not start without /etc/exports, and statd/lockd are one
script, nfslocking.  Samba and netatalk are not in the makronix set yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 12:36:46 +00:00
lotherkandClaude Opus 5.5 0987753527 mcde: the front panel shows the open programs left of the trash
CDE's front panel stays as it is.  Left of the trash it gets one part of
MCDE's (dtwm/WmMcdePanel.c): first the programs kept in the panel
(~/.dt/panel-apps), then the running programs no main panel control names.
A click brings a window forward on its workspace, or starts a kept
program; the right button offers Keep in Panel / Remove from Panel, and
dragging a running one to the left with the button held keeps it too.
The command to start a kept program comes from WM_COMMAND, else from the
process of _NET_WM_PID through the new mcde_sys_process_command (NetBSD:
sysctl kern.proc_args, Linux: /proc/PID/cmdline), else the class.

The buttons are CDE's panel controls (_DtCreateControl) with the class's
icon; a blank of the same width in the arrow row keeps every drawer's
arrow over its control; colour and pattern come from the panel row, so the
part follows the palette.  Hooks: UI.c (MainControlCreate), WmManage.c
(manage, unmanage), PopupMenu.c (the menu button over the part).

Measured on Xvfb (build/mcde-shots/panel-*.png, theme-*.png): dtterm and
dtcalc appear left of the trash; Keep in Panel wrote "Dtterm	dtterm",
the drag "Dtcalc	'dtcalc'"; with none running a click on the kept
dtcalc started it; in a dtsession with the Default and the Arizona palette
the part has the panel's colours and the bar, the panel and the windows
all change with the palette.

www: the front panel and the colours.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 12:16:06 +00:00
lotherkandClaude Opus 5.5 d0fd050046 mcde: dtfile: the column view
A fourth view button, Columns: one column per folder from Home (or /)
down to the window's folder, as many of the deepest as fit, and on the
right a preview of what is chosen -- the type's icon, its kind (TYPE_LABEL
as words, and the MIME type), size and date.  A folder chosen opens the
next column and becomes the window's folder through dtfile's own
ChangeDirectoryToParent, so title, path bar, history and the other views
follow; Back, Forward and the places rebuild the columns; a double click
on a file runs the first action of its type.

The columns are a sibling of CDE's work frame with its attachments; they
are managed before the work frame is unmanaged, with the form around held
at XmRESIZE_NONE: otherwise the window shrank to the columns' own size.

Measured on Xvfb (build/mcde-shots/df-*.png): Columns, Documents,
Projects, plan.txt -- three columns, the preview with the text icon,
"Kind: Textfile (text/plain)", 6 bytes; Back rebuilt the columns at
Documents; Icons brought the work area back; the window kept its size.
Not measured: the double click.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 09:00:01 +00:00
lotherkandClaude Opus 5.5 648a11f4de mcde: System Settings draws Startup, with programs opened at login
At login the session left or the home session, asking before logout, and
Save These Windows as Home Session: what dtstyle's Startup sets, sent the
same way (_DtSetSmState with SM_STATE_START and SM_STATE_CONFIRM; the
client message _DT_SM_SAVE_TO_HOME).  And a list of programs to open at
login, one command a line in ~/.dt/login-items, which the new
Xsession.d/0095.loginitems starts five seconds into the session, each
through sh in the background, as 0090.dtbar starts the bar.

Measured in a dtsession on Xvfb (build/mcde-shots/startup-*.png):
_DT_SM_STATE_INFO went from start 4 (current), confirm 1 (verbose) to 3
(home), 2 (quiet); adding dtcalc wrote ~/.dt/login-items.  0095.loginitems
sourced by ksh returned at once and ran both entries of a test list (one
with blanks in its argument) after the pause, skipping the comment.  Save
as Home Session is not measured.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:45:25 +00:00
lotherkandClaude Opus 5.5 dffeaf9b17 mcde: Wi-Fi in System Settings: the networks in reach, joining one
McdeSys implements mcde_sys_wifi_scan and mcde_sys_wifi_join.  NetBSD
does what sysinst does (src/usr.sbin/sysinst/net.c): a network block in
/etc/wpa_supplicant.conf -- a new file gets the example's ctrl_interface
for the wheel group, so wpa_cli answers users -- and wpa_supplicant,
wpa_supplicant_flags and dhcpcd in rc.conf, each line replaced or added;
then both are restarted.  Scanning asks wpa_cli scan_results, else
ifconfig -v IF list scan (root).  Linux uses nmcli.  The sources are in
docs/reference/wifi.txt.

The Network pane lists the networks of the first Wi-Fi card with signal
and lock, scanned once the pane is drawn.  Join... opens a terminal where
su asks for the administrator's password and dtsystemsettings -join-wifi
IF SSID-HEX asks for the network's password without echo: the name goes
as hexadecimal, the password on no command line of MCDE's (nmcli takes it
on its own on Linux; said in linux.c).

Measured on the Linux host: test_sysinfo finds 5 networks on wlp0s20f3
(read only); the pane lists them on Xvfb; -join-wifi as a user refuses
with "Only the administrator can join" and refuses a bad name.  Not
measured: joining (never on this host), NetBSD scanning and joining
(no Wi-Fi in the build VM).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:37:38 +00:00
lotherkandClaude Opus 5.5 db32002727 mcde: choosing the time zone in Date & Time
McdeSys gets mcde_sys_timezone_get (where /etc/localtime points into
/usr/share/zoneinfo), mcde_sys_timezones (zone1970.tab, else zone.tab, and
UTC) and mcde_sys_timezone_set: the zone must be a file of the zoneinfo
directory and a plain name, the caller root; the new link is made beside
/etc/localtime and renamed over it, so it is never missing (sysinst makes
the same link: src/usr.sbin/sysinst/util.c), and Debian's /etc/timezone
follows where it exists.  All POSIX, in common.c, for NetBSD and Linux.

Date & Time shows the regions and their places with the zone in use
selected; Set Time Zone sets it as root, or opens a terminal where su asks
for the password and runs dtsystemsettings -set-timezone ZONE.

Measured: test_sysinfo on the Linux host says "zone Europe/Lisbon, 313
zones offered" and refuses "../../etc/passwd"; on Xvfb the pane shows
Europe / Lisbon selected (build/mcde-shots/desk-0.png).  Setting a zone
is not measured yet (not on the host; the build VM is busy).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 08:29:50 +00:00