Commit Graph
159 Commits
Author SHA1 Message Date
lotherk 4663ea653c MCDE front panel: icons in and out of the drawers (t0258, part 2)
The drawers were half done: the drop wrote ~/.dt/panel-drawers and the dock
icon went away, but the icon never showed, because it was added to an already
realized form and sat below the drawer's height.

- WmMcdePanel.c: the drawer's icons (SUBPANEL/TAB/CLASS/TAB/COMMAND in
  ~/.dt/panel-drawers) are widgets in the subpanel's form; the last one takes
  the form's bottom attachment over from the previous last child, as CDE's
  own last control does in SubpanelControlCreate -- that is what makes the
  form, and the drawer, as high as its contents.  A drag from the dock onto a
  drawer's main-row control stores the class and command and leaves the dock;
  a drag from the drawer onto the dock keeps it and removes it from the file.
  A program in a drawer is not shown again in the dock.
- UI.c: SubpanelCreate calls McdePanelFillDrawer at its end, after the CDE
  controls and before the form is first laid out.  (An earlier hook in
  AddSubpanel never ran for the standard drawers: those are made by
  SubpanelCreate from MainControlCreate.)
- WmMcdePanel.h: the declaration.

Measured in Xvfb (1280x800, fresh HOME, ttsession + dtwm + dtbar):
- with ~/.dt/panel-drawers holding "FilesSubpanel XClock 'xclock' '-digital'",
  the opened Files drawer shows the clock icon under Downloads; the log says
  "drawer 'FilesSubpanel' to 311 pixel high for 1 icons", form and shell 311
  (before the change: form 244, icon at y=244 outside);
- dragging that icon from the drawer onto the dock: panel-drawers empty,
  panel-apps "XClock 'xclock' '-digital'" (screenshot: the icon in the dock);
- dragging the running xeyes icon onto the Files control: panel-drawers
  "FilesSubpanel XEyes 'xeyes'" and the dock back to 0 buttons.

make mcde-linux MCDE_DIRS="install programs/dtwm" exit=0.  An icon added
during a running session shows in its drawer after the next session: the
posted drawer keeps the height it was created with.
2026-11-16 09:30:18 +00:00
lotherk dcf6b4377c MCDE sound: the IRIX theme with all 70 events
The theme now carries every event of the IRIX 6.5 sound scheme
(EVENT_MAP.csv): the 20 names MCDE uses first (Launch, Start, End,
Error, Warning, Beep, OpenFolder, DropMove, DropCopy, Remove,
RemoveToDumpster, DeskSwitch, Iconify, Deiconify, NewMail, PrintFiles,
SearchHit, SearchMiss, ClockChimeHour, TerminalBell) and the further
ones the reference had (FatalError, Question, Info, Completion,
MinorError, MajorError, BadValue, InvalidLocation, Success, Failure,
Wait, Proceed, Open, Close, Mount, PutAway, EmptyDumpster,
OpenRemoteFolder, DropReference, DropIgnore, MarginBell, CursorStuck,
LaunchApp, AppDeath, ImAlive, ClockChimeHalf/Quarter, RepeatingLastBell,
ComposeFail, SearchBegin/End, TypeSelect*, and the AX_* sounds).  70
WAVs and theme.ss, 4.1 MB; every soundfile: line resolves in the
installed theme, mcdesoundd -selftest PASS.
2026-11-16 09:20:33 +00:00
lotherk b61e22457f MCDE mouse pane: wheel labels unswapped, touchpad settings (t0288)
Konrad, 2026-11-16: scrolling looked inverted in the settings, and the
touchpad could not be configured (three buttons or two with taps/gestures).

- The wheel radio pair had its texts swapped: without the button 4/5 swap a
  wheel turned towards you sends button 5 and the content goes down, so that
  is the "towards you" state.  The labels now sit on the right widgets.
- McdeSys gains mcde_sys_touchpad_get/set (McdeSys.h): tap to click, two
  fingers as no/right/middle button (pms(4) hw.synaptics.tap_to_click and
  .two_fingers_emulation) and a scrolling strip at the pad's edge
  (.vert_scroll_percent/.horizontal_scroll_percent, 7 or 0).  The sysctls are
  CTLFLAG_READWRITE, so a write as a user answers MCDE_SYS_EPERM with a
  sentence; a system without the interface answers ENOTSUP (Linux: libinput
  keeps its own, per device).
- The Mouse tab builds a Touchpad section from the read values (tap, the
  pad's own buttons / right / middle, the scrolling strip) and writes
  ~/.dt/touchpad only after a successful set; the note says when the
  administrator is needed.  dtsystemsettings -apply-touchpad puts the saved
  values back, for a boot script or an unlocked session.

Measured: make mcde-linux MCDE_DIRS="install lib/McdeSys" and
"install programs/dtsystemsettings" exit=0; the NetBSD branch of netbsd.c
passes x86_64--netbsd-gcc -std=gnu11 -fsyntax-only -Wall with the tree's
sysroot; the Mouse tab on Linux shows the corrected wheel pair and "This
system keeps the touchpad settings outside the desktop" (screenshot), and
with a stub backend in the build tree only for the picture, the section with
tap, fingers and strip; dtsystemsettings -apply-touchpad with a saved file on
Linux answers the ENOTSUP sentence, rc=1; with no file rc=0.
2026-11-16 09:14:44 +00:00
lotherk cc3f711afa MCDE sound: the IRIX 6.5 theme (t0291)
The old IRIX desktop sounds (imported from the IRIX 6.5.29 media,
~/tmp/irix_extract/assets/desktop-sounds/sounds-events) are a theme of
their own beside Camouflage and Base: 20 events with the names MCDE
uses (Launch, Start, End, Error, Warning, Beep, OpenFolder, DropMove,
DropCopy, Remove, RemoveToDumpster, DeskSwitch, Iconify, Deiconify,
NewMail, PrintFiles, SearchHit, SearchMiss, ClockChimeHour, TerminalBell),
theme.ss from the reference's event list, in
/share/sounds/themes/IRIX.  The Sound pane lists
it (Theme menu: Camouflage, Base, IRIX); mcdesoundd -selftest with
MCDE_SOUND_THEME=.../IRIX prints PASS.  tools/mcde-shot.sh passes
MCDE_SOUND_THEME through for such tests.
2026-11-16 09:13:00 +00:00
lotherk 23787aa4b5 MCDE desktop: the trash icon (t0284)
The desktop carries a Trash icon (Dtbin.m.pm when ~/.dt/Trash is empty,
Dtbinml.m.pm when it holds something); a double click opens the trash in
dtfile, the icon menu has Empty Trash.  The icon is an XDND drop target:
a file dragged onto it is moved into ~/.dt/Trash (renamed, or copied and
removed across file systems).  tools/mcde-xdnd-drop.c is the test
source: it sends XdndEnter/Position/Drop with text/uri-list and answers
the SelectionRequest.  Measured under Xvfb: the empty and the full
glyph, Empty Trash emptied the folder, and the drop of
file:///tmp/xdnd-test.txt printed status accept=1, selection request,
finished and left the file in the trash.  Screenshots:
desktop-trash-empty.png, desktop-trash-full.png.
2026-11-16 08:58:03 +00:00
lotherk 7b68dabc08 MCDE desktop: the context menu of the empty desktop (t0283)
A right click on the background (not on an icon) opens the desktop's own
menu: New Folder (in ~/Desktop, numbered when it exists), Clean Up Icons
(the icons the person never dragged go back to the grid; a dragged one
keeps its place, moved=1 in ~/.dt/desktop.conf), Change Backdrop...
(dtsystemsettings -pane screensaver) and Show Desktop Icons ([x] in the
menu, show=0/1 in the file).  The menu is the same override-redirect
window the icon menu uses, with its own entry table.  Measured under
Xvfb: New Folder made ~/Desktop/New Folder and its icon appeared; a
dragged DATA stayed at 668,358 while the others returned to the grid;
Show Desktop Icons wrote show=0 and unmatched every icon, a restart with
show=0 shows no icons.  Screenshots: desktop-root-menu.png,
desktop-cleanup.png.
2026-11-16 08:48:33 +00:00
lotherk ca668b1de4 MCDE dtbar: a message catalog, German measured (t0081)
The M menu's labels come from dtbar's catalog now, the CDE way: the English
source programs/dtbar/dtbar.msg, the German copy in
programs/localized/de_DE.UTF-8/msg/dtbar.msg, both built by
programs/localized/*/msg with gencat (dtbar.cat added to msg.C.am) and
installed under lib/nls/msg/<locale>/.  catopen("dtbar", NL_CAT_LOCALE) --
the name without .cat, because NLSPATH appends %N.cat (CDE's
NLS_PATH_STRING); dtbar sets NLSPATH itself when the session has none.

Strings: About This Computer, Software Update..., Makronix Software...,
System Settings..., Favourites, Recent Items, Force Quit..., Front Panel,
Sleep, Restart..., Shut Down..., Lock Screen (set 1, messages 1-12).

Measured on Xvfb with ttsession + dtwm + dtbar, a fresh HOME, the M menu
opened with a click:
- LANG=de_DE.UTF-8 (locale generated with localedef into /tmp, LOCPATH):
  "Über diesen Computer", "Software-Aktualisierung...",
  "Systemeinstellungen...", "Favoriten", "Zuletzt verwendet", "Frontplatte",
  "Ruhezustand", "Neustart...", "Ausschalten...", "Bildschirm sperren"
  (screenshot /tmp/opencode/catalog-de.png);
- LANG=C: the English labels (/tmp/opencode/catalog-c.png), so the C
  catalog and the fallback work.
A direct check with catopen/catgets in C returns the same two strings.

make mcde-linux MCDE_DIRS="install programs/dtbar" and
"... programs/localized/C/msg" exit=0; MCDE_DIRS=plist:
"3410 installed names under dt/, 8599 in the PLISTs", ok.
2026-11-16 08:37:41 +00:00
lotherk 89b309f5f5 MCDE icons: 178 .pm files of the Solaris CDE icon package
Konrad's task t0265: the CDE icons of Solaris 2.6 (SUNWdticn) should be
available to dtfile.  178 of its 647 .pm files have names the tree does not
have (469 do, with the CDE 2.5.3 artwork, and are not overwritten); they are
copied here, listed at the end of dist_icon_DATA and added to the PLIST.
provenance: programs/icons/SOLARIS.

Measured: make mcde-linux MCDE_DIRS="install programs/icons" exit=0, the new
files in build/mcde-root/dt/appconfig/icons/C (DtMal.s.pm, SDturlfile.t.pm);
tools/mcde-plist-check.sh (MCDE_DIRS=plist): 3409 installed names under dt/,
8597 in the PLISTs, ok.  Two of the new files render as valid XPM (ImageMagick).
2026-11-16 07:33:07 +00:00
lotherk e37ff1510a MCDE: an own document glyph for files on the desktop
McdeFile.m.pm (32x32 XPM: a sheet with a folded corner and grey text
lines) is the desktop icon of a file; a folder keeps DtdirB.m.pm.
DeskIconName() picks it for the 'f' of DeskAddDir().  The icon is in
programs/icons/Makefile.am and the PLIST.  Measured under Xvfb:
datei.txt shows the document, Ordner the folder.
2026-11-16 07:32:04 +00:00
lotherk d2ada23e5a McdeSys: device events on NetBSD through drvctl(4) DRVGETEVENT
mcde_sys_disk_events() opens /dev/drvctl O_NONBLOCK on NetBSD; the
events come as an ioctl, not read(2), so the new
mcde_sys_disk_event_read() is the one call a program uses: Linux reads
the uevent, NetBSD asks DRVGETEVENT and turns the property list into the
same 'device-attach sd0' line (the way devpubd(8) does it).  dtwm's
desktop and test_sysinfo use the new call; the cross compiler builds
events.c and netbsd.c for NetBSD and the Linux tests stay green.
2026-11-16 07:25:28 +00:00
lotherk 0977cc954a MCDE: desktop icons for computer, disk mounts, media and network mounts
McdeSys: McdeSysMount and mcde_sys_mounts() -- /proc/mounts on Linux
(label from /dev/disk/by-label, removable from /sys/block), getmntinfo
on NetBSD; pseudo file systems are marked volume=0, network file systems
network=1; test_sysinfo checks that / is mounted once.

dtwm: WmMcdeDesktop.c is the 4Dwm-style desktop: one override-redirect
window per icon in the top right corner, filled from the top down, then
the next column left; XPM glyphs; labels cut with '...'; the computer
('/'), disk mounts, removable media (mounted or not), network mounts and
the person's files from ~/.dt/Desktop and ~/Desktop; right click menu
(Open, Open Home, Show on All/This Workspace, Unmount, Move to Trash);
drag and drop; every icon's place and workspace in ~/.dt/desktop.conf
(kept for good); not mounted media are mounted by the double click.
WmWrkspace.c calls McdeDesktopWorkspaceChanged() on a workspace change.

tools/mcde-shot.sh: MCDE_DESK_TEST_MOUNTS, MCDE_DESK_TEST_DISKS,
MCDE_DESK_TEST_DESKTOP and MCDE_SHOT_KEEP_HOME for the tests.
2026-11-15 22:22:20 +00:00
lotherk 00150352c6 dtwm: icons in the 4Dwm look (image + label, tight column at the left)
Konrad, 2026-11-15: the icons of iconified windows should look like 4Dwm's.
Dtwm.defs.src now has iconDecoration "label image", iconImageMaximum 85x67
and iconPlacement "top left tight"; iconBoxSBDisplayPolicy is "vertical" so
an icon box does not turn the column back into a row.

The first token of iconPlacement is the primary direction in
WmCvtStringToIPlace/CvtIconPlaceToPosition: "top" fills a column downward,
"left" would fill a row (measured: "left top" produced a row at the top,
"top left tight" a column at the left edge).  The "tight" token gives the
2 pixel margins of ICON_PLACE_TIGHT.

Measured in Xvfb (1280x800, fresh HOME, ttsession + dtwm): three xterms
iconified -> pictures 85x67 with the label under each, at the left edge,
one under the other (screenshot before: a row along the top).  The
app-defaults file is read (appres Dtwm with XFILESEARCHPATH of the
development installation shows the three resources).
2026-11-15 22:18:15 +00:00
lotherk 9e137005cd MCDE front panel: dock halves, drag to keep, printer and xterm
Konrad, 2026-11-15: "wenn keep in dock angewaehlt, muss das icon nach links
wandern"; icons drag & drop; the print widget back on the right; the
programs not in the dock in a separate area; the panel's terminal is xterm.

- The dock part (WmMcdePanel.c) is two halves now: the kept programs left,
  a vertical separator, the running programs that are not in the dock
  right.  A running icon dragged out to the left (or onto the kept half)
  is kept and moves to the left; a kept icon dragged out to the right (or
  onto the running half) is removed and moves back.
- The dump separator is an XmSeparator widget, not a gadget: Motif's
  XtQueryGeometry/XtTranslateCoords crash on gadgets (one dtwm core dump
  measured before the change).
- The Printer control is back in the main row, position 7, left of the
  trash (it was in the Desktop drawer); the dock part is inserted left of
  it, so the order is switch | dock | printer | trash, and a file dragged
  from dtfile onto the printer prints.
- The System (Terminal) control runs Xterm/XTerm, not Terminal/dtterm.
- MCDE_PANEL_DEBUG prints the part's absolute position for tests.

Measured in Xvfb (1280x800, fresh HOME, ttsession + dtwm + dtbar):
xclock kept by dragging its icon out to the left -> ~/.dt/panel-apps has
"XClock 'xclock' '-digital'", debug "2 buttons (1 kept)", area 60 -> 126
wide with the separator at +64; dragging it out to the right again empties
panel-apps ("2 buttons (0 kept)", area 120).  Screenshots: two icons with
the divider, the printer and the trash right of them.  make mcde-linux
MCDE_DIRS="install programs/dtwm" and "... programs/localized/C/types"
exit=0.
2026-11-15 21:26:09 +00:00
lotherk c827e7efcb Import Solaris 2.6 CDE backdrops into MCDE (30->49) + 4Dwm-style desktop placement + wallpapers in /usr/share/makronix/wallpapers 2026-11-15 20:58:48 +00:00
lotherk 4d935bcddc dtwm: Ctrl+F2 in the built-in key bindings; dtbar takes the keyboard
The tmsg line alone does not reach a default install: dtwm reads its keys
from ${CDE_CONFIGURATION_TOP}/config/%L/sys.dtwmrc, and only the
installation copy under ${CDE_INSTALLATION_TOP} exists there, so a default
session runs on WmResource.c's builtinKeyBindings.  Ctrl+F2 is in that set
now (as Cmd+Tab, Cmd+H, Ctrl+Left/Right and the screenshots already are).

dtbar's Command("menu") puts the X input focus on the bar's shell and the
Motif focus on the M cascade (the first one), instead of XmTRAVERSE_HOME on
the bar, which left the traversal nowhere.

Measured on Xvfb with ttsession, dtwm, dtbar and dtterm, a fresh HOME:
xdotool getwindowfocus before Ctrl+F2 -> 0xe00037, the Terminal window
(547x361 at 23,45); after -> 0xc0003d, 1280x22 at 0,0, the bar's shell
(xwininfo).  tools/mcde-keytest.sh ctrl+F2: "screen changed".  Down and
Return still post no menu: the bar also carries the client's exported menu
bar, and Motif does not traverse into it from outside -- recorded in
AGENTS.md as an open point, the pointer opens the M menu (screenshot).

make mcde-linux MCDE_DIRS="install programs/dtbar programs/dtwm" exit=0.
2026-11-15 20:46:19 +00:00
lotherk 2bc23143ef dtbar: add Ctrl+F2 menu focus command and keybinding (t0221) 2026-11-15 13:52:45 +00:00
lotherk 62025888d3 dtlogin: install NetBSD-correct PAM config for base and pkg (t0252) 2026-11-15 13:45:31 +00:00
lotherk efb92c88cc dtscreenshot: the picture of the screen, whole / an area / the clipboard (t0222)
sys.dtwmrc bound Mod4 Shift 3 and 4 (and Ctrl for the clipboard) to
`dtscreenshot` since 2026-11-15, and the program did not exist: the key
reached dtwm and nothing happened (tools/mcde-keytest.sh, t0222).

programs/dtscreenshot/dtscreenshot.c: C99, Xlib and libpng only, no toolkit.
  (none)      the root window -- every monitor -- as a PNG,
              "Screenshot YYYY-MM-DD at HH.MM.SS.png" in ~/Desktop, else in ~
  -area       the rectangle the pointer drags out, XOR outline, Escape cancels
  -clipboard  image/png on the CLIPBOARD selection, held until another owner
  -delay N    wait before the picture (a menu to open first)
  -o FILE     this file instead of the default name
Nothing runs until the key is pressed; the area is grabbed with a crosshair
cursor; a picture larger than the server's maximum request is refused with a
message (the clipboard is handed over in one property, no INCR).

Wired in three places as ext/src/mcde/AGENTS.md asks: programs/Makefile.am's
SUBDIRS, configure.ac's AC_CONFIG_FILES, the source directory with its
Makefile.am; dt/bin/dtscreenshot is a PLIST line.

Measured on Xvfb :99 with the development build (build/mcde-root/dt/bin):
  dtscreenshot -o /tmp/shot-test.png            -> 800x600 PNG, exit 0
  dtscreenshot -area -o /tmp/shot-area.png with
    xdotool mousemove 100 100 mousedown 1 mousemove 300 250 mouseup 1
                                               -> 200x150 PNG
  dtscreenshot -clipboard, then
    xclip -selection clipboard -t image/png -o -> 800x600 PNG
  tools/mcde-keytest.sh: Mod4 Shift 3 puts
    "Screenshot 2026-11-15 at 08.51.30.png" on the session's Desktop
    (0 before, 1 after; build/logs/mcde-keytest-2026-11-15f.txt).
  make mcde-linux MCDE_DIRS=plist: 3210 installed names under dt/, ok.
2026-11-15 08:55:43 +00:00
lotherkandClaude Sonnet 5.5 bd570d49f7 sys.dtwmrc.tmsg de_DE, es_ES, fr_FR: the key lines were cut off by quoting (t0058)
Merged with the project's tool (programs/localized/util/merge, LC_ALL=C.UTF-8),
de_DE and es_ES lost F8-F11, Ctrl+Up and all lines after them because message 11
closed its quote after the F10 line; de_DE, es_ES and fr_FR lost every line
after the first f.exec "..." because the inner quotes were not escaped.  Both
fixed; all 11 locales now merge with rc=0 and no message, and the Keys sections
carry the same 56 MCDE key lines as C.

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

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

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 05:55:37 +00:00
lotherkandClaude Sonnet 5.5 029f3a5fd8 dtwm: the Command keys, Ctrl+Left/Right and the screenshot keys are in the key set a session loads; snap and full screen leave the front panel alone (t0058)
MEASURED 2026-11-15 on Xvfb with plain XTest keys: a session loads
Dtwm*keyBindings: DtKeyBindings, and that block of sys.dtwmrc had no Mod4 line;
the 25 Command/Ctrl+Left/Right/Eject/screenshot lines stood only in
DefaultKeyBindings (and in the Sun-keyboard variant), so XGrabKey of Mod4+h from
a second client succeeded (nothing grabbed) and the keys did nothing.  The 25
lines are copied into message 11 of all 11 sys.dtwmrc.tmsg.
SEEN after (C locale): Ctrl+Right goes to workspace Two; Command+Ctrl+Left makes
the focused File Manager the left half, Command+Ctrl+BackSpace gives it back,
Command+H minimizes it to an icon.  Not run: the other ten locales (only C is
built on this host); they got their own lines of DefaultKeyBindings, placed
after the F9-F11 lines of their message 11 like the lines that stand there.

With the front panel focused, Command+Ctrl+Left made it half the screen:
f.mcde_snap and f.mcde_fullscreen now ignore panel windows (seen: unchanged).

tools/mcde-xkey.sh presses keys by plain keycodes (XTest): xdotool 3.20160805
sends Alt_L first and the F-key with Alt held on this keymap, which made every
plain F-key binding look dead (the F9 of t0216).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 05:50:42 +00:00
lotherkandClaude Sonnet 5.5 dbe6350447 dtwm: F8 shows the workspaces as a grid of small screens with their windows; arrows, digit, Return or click switch (t0183, first part)
WmMcdeSpaces.c: an override-redirect window like the window overview, drawn
once on demand, nothing runs while it is closed.  Reached as f.mcde_app spaces
(a new function name is not bound by a key, as measured for the overview).
Seen on Xvfb: F8 opens it, Right + Return goes to Two, a click on Four goes
there, F8 twice closes, 1 goes back to One; docs/screenshots/leopard/Spaces-mcde.png.

The 'F9 does nothing' of t0058/t0216 was the test sender: xdotool 3.20160805
sends Alt_L before an F-key in this keymap, so the key arrives as Alt+F9.  With
plain XTest keycodes F8 reaches the root grab (ext/src/mcde/AGENTS.md).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 05:45:20 +00:00
lotherkandClaude Sonnet 5.5 8b6d56f572 dtactivity: each tab says what its graph colours are; stacked graphs scale to their total (t0091)
The same three paints meant different things on the four tabs (user/system/nice,
used/cached, read/write, receive/send) and nothing said which; each tab has a
"Graph: ..." line under its numbers now.  The Disk and Network graphs stack
read on write but were scaled to the larger of the two, so a second with both
could clip: they scale to the highest stacked column (Peak sums the two).
Seen in a PID-namespace session with a disk writer: the line fits under the
numbers, the red writes fill the height at the peak.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 05:21:56 +00:00
lotherkandClaude Sonnet 5.5 5ea507d4dc dtactivity: the activity window (t0091)
A table of the processes -- PID, name, user, % CPU since the last sample,
threads, real and virtual memory -- sorted by the column title you click; Show
(all, mine, system), a filter, Quit Process (asks; SIGTERM; Force Quit SIGKILL)
and Inspect; and under it four tabs, CPU, System Memory, Disk Activity and
Network, with the numbers and a three-minute history graph.  All of it through
McdeSys (processes, CPU times, memory, disk and network counters, signals, the
commits of 2026-11-14/15); no ps(1), no top(1).  New program: programs/
dtactivity (Makefile.am, programs/Makefile.am, configure.ac, PLIST line
dt/bin/dtactivity; make mcde-linux plist: ok).

Frugal, as t0080 asks: one timer, 2 s, only while the window is mapped and not
fully obscured.  Measured with strace -c -f -p for 15 s: 2349 system calls
visible, 0 unmapped (xdotool windowunmap), 0 with an override-redirect window
over the whole screen, 2365 shown again.  Control: an idle sleep gives the same
empty summary, a process that makes calls does not.

Quit Process measured against real processes in a PID namespace (unshare -rpf
--mount-proc: only the test session's processes exist, so neither the tests nor
the screenshot show the host's): Cancel leaves a process alive, Quit ends it, a
process that ignores SIGTERM survives Quit and is ended by Force Quit.  Filter
and column sorting seen in screenshots (the committed image is the CPU tab with
two busy loops and the 24 MB/s of a disk writer in the other tab).  Cross
compile for NetBSD (x86_64--netbsd-gcc -Wall -Wextra): no diagnostic.  The
"Cannot convert string mcde to type FontStruct" warning is the shared
*renderTable fallback: dtimage prints it too.

Not built: Show "with window", the global menu, Cmd+F and Cmd+1..5, the
administrator's way for another user's process (t0079; it says "belongs to
somebody else"), a legend for the graph colours, the dtappscan entry; the NetBSD
backends of the numbers were never run.  Sorting by clicking a header was not
exercised by a script (the layout was); the default sort (CPU, descending) is
what the screenshots show.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 05:20:01 +00:00
lotherkandClaude Sonnet 5.5 076cb486d6 dtfile: the folder-merge question as one sentence with Stop / Merge; Return takes the default button (t0215)
create_replace_merge_dialog: "A folder named ... already exists in this location.
Do you want to merge the contents of the two folders?" and Stop / Merge, no radio
box.  Merge is the default (Return), Escape and the Stop button cancel.  The
hidden G_merge_toggle keeps replace_merge_ok_callback and the pipe protocol as
they were; "replace the whole folder" is no answer of this question any more.

Found while measuring Stop: the focus of both dialogs sat on the FIRST button
(Stop here, Keep Both in the single-file dialog of t0156), and in Motif Return
activates the focused button, so Return did not take the default.  XmNinitialFocus
is ignored on the form for a button in a RowColumn (a tab group of its own); it
is set on the row now, to Merge and Replace.

Measured (real dtfile on Xvfb; Cmd+C opens the Copy Object dialog, the
destination typed there; folders A/ord{one.txt}, B/ord{two.txt}):
  folder: Return -> B/ord one.txt two.txt; Merge button -> the same; Escape and
  Stop button -> B/ord two.txt only; A/ord one.txt every time.
  file (A/f.txt "from-A", B/f.txt "from-B"): Return -> f.txt=from-A; Escape and
  Stop button -> f.txt=from-B (the Stop of t0156 now measured); Keep Both ->
  f_1.txt=from-B and f.txt=from-A.
Before the focus fix Return in the folder dialog did NOT merge (B/ord two.txt).
Cross compile for NetBSD (x86_64--netbsd-gcc, the build's flags): no error, no
warning in the changed code.  Screenshots: Finder-Copy-Merge-mcde.png (new),
Finder-Copy-Replace-mcde.png (retaken: the focus is on Replace).

Not done: the multi-collision dialog "Do this for all" (item 3 of the task).
Keep Both renames the EXISTING file (CDE's rename protocol); the Finder keeps
the incoming copy under the new name -- noted in AGENTS.md, not changed.

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

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

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

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 00:37:01 +00:00
lotherkandClaude Sonnet 5.5 b20fca5845 mcdesoundd: the shell is never mapped (t0080 item 5)
The top-level shell only owns the selection _MCDE_SOUND_SERVER, but it was
realized with mappedWhenManaged on: a 1x1 window at +0+0 that a window manager
would frame (review no. 32, unverified until now).  Measured on a private
Xvfb with xwininfo: before, the shell 0x200010 "mcdesoundd"/Mcdesoundd: Map
State IsViewable; after XtSetMappedWhenManaged(top, False): IsUnMapped (the
Xt leader window was and is IsUnMapped).  The server still receives: an event
the theme does not know, sent with `mcdesoundd -event ProbeNoSuchEvent`, is
logged by the running server ("has no sound in the theme").

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 00:31:01 +00:00
lotherkandClaude Sonnet 5.5 cc770d000e dtfile: a mount no longer freezes the window; Connecting dialog, Cancel, Dtfile*connectTimeout (t0080 item 4)
mcde_sys_net_mount ran in the Xt callback and waited for sshfs/mount_afp
without a limit: a server that is gone froze the window for as long as the
tool lived (measured: the call returns after 20.0 s with a tool that sleeps
20 s; with one that never ends, never).

McdeSys: mcde_sys_net_mount_start/_job_fd/_job_finish/_job_cancel.  The tool
runs under a runner process (its own process group) that writes the answer
to a pipe: dtfile sets SIGCHLD to SIG_IGN (Main.c), where waitpid gives no
status.  mcde_sys_net_mount and _start share one plan (MountPlanFor).
test_job (make check, 5 of 5 pass) covers success, failure, a missing tool,
a password on stdin, and cancel with the tool AND what it started gone, with
SIGCHLD default and ignored; without the group kill it fails (mutant run).

dtfile: _McdeNetMount (NetView.c) for all three mounts (network view,
Connect to Server, column view): a modal "Connecting ..." dialog with Cancel
(also close button and Escape), the descriptor as Xt input (no timer
polling), one time-out, Dtfile*connectTimeout, 20 s, 3..600 (app-defaults,
man page).

Measured (real dtfile on Xvfb, fake sshfs that sleeps 40 s, connectTimeout
4): the dialog shows and repaints when moved; the time-out gives "Could not
connect: The server did not answer within 4 seconds.", Escape gives
"Could not connect: Cancelled."; sleep processes while connecting 1, after
the time-out 0, after Escape 0; no dialog left.  One first run showed a 40 s
stall of the whole session after Return (import blocked too); not
reproduced in three further runs, cause unknown.  Cross compile for NetBSD
(x86_64--netbsd-gcc, the build's flags): netmount.c and NetView.c without a
warning; common.c's old settimeofday declaration warning is not new.  Not
done: the NFS and AFP tools (only sshfs was faked), the afp://10.255.255.1/
case of the task with a real mount_afp.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 00:28:27 +00:00
lotherkandClaude Sonnet 5.5 1ea27d7b8d MCDE dttoolbox: told of the published menu, not polling every 500 ms; the rebuild no longer crashes (t0080)
The menu the desktop publishes (_SGI_MENU_Selected on the window named by the
root property _SGI__MENU_WINDOW) was read on a 500 ms timer, two atom lookups and
two property reads each time.  main now looks at PropertyNotify itself (Xt
routes no event for a foreign window to a widget; dtlaunch's loop does the
same) and selects the menu window's property events before reading the text.

Measured: idle writes to the X socket in 10 s (strace) 20 before, 0 after; the
publisher scenario (2, 3, then 1 entries) is reported at 0.01 s, 3.001 s and
7.001 s.

Two defects of the old code, found by the control run: (1) the third change of
a menu with children died with SIGSEGV in XtDestroyWidget -- the loop walked the
parent's own XmNchildren array while every destroy shortened it; the list is
copied first.  (2) A rebuild deferred because the menu was open recorded the
text as seen and never built it; the text is forgotten now and one 1 s timer
retries, only while that waits.  The deferred path is not exercised by the
harness.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 23:08:18 +00:00
lotherkandClaude Sonnet 5.5 a6cb7c3f87 MCDE dtlaunch: told of a new clipboard owner by XFixes, not asking every second (t0080)
XFixesSelectSelectionInput on CLIPBOARD; the event names the new owner, whose
text is read once.  configure.ac checks libXfixes and gives only dtlaunch
XFIXESLIB and XFIXES_CPPFLAGS (-DHAVE_XFIXES); a define in config.h would have
recompiled every file.  Without the library or the extension the owner is asked
every 5 s (POLL_MS, was 1 s).  The recipe lists x11/libXfixes/buildlink3.mk.

Measured with strace (writes to the X socket, 10 s idle after 4 s): 10 before,
0 with XFixes, 2 in the fallback (5.0 s and 10.0 s; tested with an LD_PRELOAD
shim that makes XFixesQueryExtension fail -- Xvfb -extension XFIXES aborts for
any Motif client, also an unmodified dtpad).  Both paths still put a copy made
by xclip during idle into the history (screenshots).  The sysroot has Xfixes.h,
libXfixes.so.4.1 and the pkg-config files; the cross build of the recipe change
is not run yet.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 22:58:59 +00:00
lotherkandClaude Sonnet 5.5 048e842776 MCDE dtlaunch: the panes of System Settings are results; dtsystemsettings -list-panes (t0185, first part)
dtsystemsettings -list-panes prints the panes (ID, name, category, keywords; a
PANE_LATER pane is left out) before any X setup.  dtlaunch asks for them once
(pipe and exec, no shell, a 3 s poll limit; no waitpid, SIGCHLD is ignored
there) and model.c parses and matches them: the name at full score, a keyword
at half, the ID checked because it ends up in dtsystemsettings -pane ID.  A
result reads '[settings] Displays (Hardware)' and starts through the same
Parental Controls as a program (run_args).  dtlaunch -text STRING fills the
field of the first opening, for tests and tools/mcde-shot.sh.

Measured: make mcde-linux 'check programs/dtlaunch programs/dtsystemsettings'
exit=0, test_model PASS (test_panes: parse incl. unsafe IDs, matching incl. a
German keyword); -list-panes: 24 lines, exit 0 with DISPLAY unset, no dock;
Spotlight-mcde.png: typing 'disp' lists '[settings] Displays (Hardware)'
second; Return on 'displays' starts 'dtsystemsettings -pane displays' and a
window 'Displays' appears (Xvfb).  Not done: the grouped two-column list,
documents/mail/PDF/web results, the dtbar magnifier, the clipboard without the
1 s poll (t0185, t0080).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 22:28:06 +00:00
lotherkandClaude Sonnet 5.5 08a13e9f20 MCDE: restore and testcgm are EXTRA_PROGRAMS, not built for the target for nothing (t0197)
Both were noinst_PROGRAMS: built, not installed, run by no Makefile.am -- in a
cross build two programs compiled for the target that nothing can run
(tools/check-buildtools.sh found them).  Built only on request now.
Native: make mcde-linux for the two directories, exit=0, the regenerated
Makefiles say EXTRA_PROGRAMS (build/logs/mcde-linux-2026-11-14-t0197.log).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 21:22:43 +00:00
lotherk ef74fb61ca MCDE dtbar: Show All brings every hidden program back (t0202) 2026-11-14 18:51:17 +00:00
lotherk d72634fd62 MCDE: the web browser as the desktop's default program (t0179)
A web page has one action on the desktop now, McdeWeb
(programs/types/datatypes.dt.src): it runs "dtsystemsettings -open-web
%Arg_1%", which reads the browser from ~/.dt/defaults (web:, chosen in the
Default Programs pane) and starts it with execlp -- no shell, and an argument
with a shell character is refused.  -open-web is handled before Xt is set up,
so an action needs no display.

The .html and .htm criteria of programs/types/firefox.dt map their Open to
McdeWeb: a double click in dtfile now follows the file's choice instead of a
hard-wired Firefox.  McdeWeb takes ARG_TYPE * -- an action that names a data
type the file does not have is refused ("Either action ... does not apply",
measured), and it is only named by the types that may use it.

dtthemesync gained the Firefox part: every profile under ~/.mozilla/firefox
with a prefs.js gets a user.js (downloads into ~/Downloads, reduced motion,
no cosmetic animations, no smooth scrolling, ui.key.accelKey 91 -- Command is
Mod4 in MCDE) and a chrome/userChrome.css written from the palette.

Measured under Xvfb with xdotool and a wrapper that records its arguments:

  - dtsystemsettings -open-web http://example.org with web: true answers
    "Opened in true: http://example.org" and exits 0, without a display;
  - -open-web "http://x;rm -rf /" answers "That is not an address" and exits
    1; -open-web "" answers "No address was given";
  - a double click on page.html in dtfile with web: mcdetest-browser hands
    exactly that path to the wrapper (cat of what it got);
  - the same double click with web: firefox opens a "Mozilla Firefox" window;
  - dtthemesync -v in a test home with a fake profile writes user.js and
    chrome/userChrome.css; user.js carries browser.download.dir
    <home>/Downloads, prefersReducedMotion 1, cosmeticAnimations false,
    smoothScroll false, ui.key.accelKey 91, and the CSS starts with
    --toolbar-bgcolor: #c6b2a8 (the palette Default.dp);
  - the Default Programs pane shows web: firefox and, after the fix, the
    links choice that the file has ("in a tab of the window that is there")
    -- docs/screenshots/leopard/web-browser-default-mcde.png;
  - make programs/dtsystemsettings, programs/dtthemesync, programs/types
    exit=0; check programs/dtsystemsettings: test_panes PASS; check lib/DtSvc
    PASS.

Not measured: Firefox's own Cmd+T/W/L in a running window (the user.js sets
the accelerator; that needs a person at the keyboard), and dtexplorer -- the
Motif browser of the task -- which is its own program and a follow-up.
2026-11-14 15:54:22 +00:00
lotherk efa848d5fb MCDE dtfile: a copy window with bar and bytes from the child's pipe (t0155) 2026-11-14 15:33:39 +00:00
lotherk fef820cb25 MCDE dtcmprefs: the calendar's settings on the shared pattern (t0149) 2026-11-14 15:08:49 +00:00
lotherk eee4501874 MCDE dtimage: the picture viewer, Previous/Next, Zoom, Slideshow (t0160) 2026-11-14 15:05:02 +00:00
lotherk 635afd8572 MCDE dtnetutility: Info, Lookup and Netstat (t0146) 2026-11-14 14:58:28 +00:00
lotherk 813bd87f6e MCDE dtsystemsettings: the Backup pane in the reference's shape (t0175) 2026-11-14 14:53:48 +00:00
lotherk 4b3d4d6d93 MCDE dtsystemsettings: the Startup Disk pane, the volume in use marked (t0174) 2026-11-14 14:46:57 +00:00
lotherk 630cd2f75d MCDE dtconsole: the log viewer with an inotify watch (t0123) 2026-11-14 14:41:22 +00:00
lotherk 131f12ed69 MCDE dtsystemsettings: System Information from McdeSys (t0188) 2026-11-14 14:36:41 +00:00
lotherk b912458ef5 MCDE dtsystemsettings: the default programs, ~/.dt/defaults (t0180) 2026-11-14 14:32:10 +00:00
lotherk 116c142e2b MCDE dtsystemsettings: Internet accounts, own services only (t0130) 2026-11-14 14:27:41 +00:00
lotherk 9e849fbaa4 MCDE dtsystemsettings: the Energy Saver pane, display sleep on dtsession (t0120) 2026-11-14 14:22:40 +00:00
lotherk 6b3aa13ae8 MCDE dtfile: the overwrite question as one sentence with Keep Both / Stop / Replace (t0156) 2026-11-14 14:16:06 +00:00
lotherk 61869aa8e1 MCDE dtsystemsettings: the CDs & DVDs pane, a choice per kind of medium (t0100) 2026-11-14 13:59:36 +00:00
lotherk 01cd2b88bc MCDE dtsystemsettings: Parental Controls in the System row of the panes (test_panes) 2026-11-14 13:54:28 +00:00
lotherk cec3eb49e3 MCDE dtsystemsettings: Parental Controls, enforced by the launcher (t0142)
New programs/dtsystemsettings/parental.c: the accounts on the left and, for
the chosen one, three pages.  Programs: "All programs" or "Only the
applications selected below" with a list of the desktop's programs.  Time
Limits: weekday and weekend hours ("09:00-19:00" or "any").  Log: the
programs that were started, from ~/.dt/parental.log.  The values are kept in
~/.dt/parental.conf under the login's name ("lotherk.allow=dtpad,dtfile"),
English keys, the file the launcher reads.

The enforcement is in dtlaunch, the place where a program is started: the
list shows only the allowed names, a disallowed program or a start outside
the hours is refused with a sentence in the window ("Outside the allowed
hours (Parental Controls)."), and every allowed start is appended to
~/.dt/parental.log.  A refusal keeps the launcher open.

Measured under Xvfb with xdotool:
  - with "lotherk.only=1, allow=dtpad" the launcher offers dtpad only;
  - with hours 03:00-03:01 (now 13:4x) Return on dtpad is refused, the
    window stays and says why, and ~/.dt/parental.log stays absent;
  - with "any" the same Return starts dtpad and the log gets
    "2026-11-14 13:44 dtpad";
  - the pane shows the accounts, the three pages and the applied file
    (docs/screenshots/leopard/System-Preferences-Parental-Controls-mcde.png,
    ...-Time-Limits-mcde.png);
  - make programs/dtsystemsettings, programs/dtlaunch exit=0.

Not done (follow-up): system-wide enforcement -- taking the execute
permission away from programs outside the list needs root, ending a session
when the hours are over belongs to dtsession, and a child's own file needs
the administrator.  A toggle or radio set before its page is laid out keeps
its first painted state in this pane (measured); the file is right.
2026-11-14 13:53:51 +00:00
lotherk 938253e9bd MCDE: drives on the desktop, the bar's user menu and search (t0126)
dtwm draws the volumes of the computer in a small window in the top right
corner under the bar (new programs/dtwm/WmMcdeDesktop.c): one tile for each
mounted volume from mcde_sys_disks -- the drive glyph, the volume's name on
a background field of its own (no shadow, no transparency), the chosen one
boxed.  A second click within 500 ms opens the volume in dtfile
(fork/execv, no shell).  The list is read when the window manager starts;
a volume plugged in later needs the mount events of t0080/t0083.
MCDE_DESK_DEBUG=1 prints what it found (tools/mcde-shot.sh passes it into
the session).

The bar's right end gained the reference's two parts: a person cascade with
the login name (the passwd entry first: a session started with an empty
environment has no USER -- measured, the menu said "user"), Accounts... and
Log Out...; and a magnifier cascade with "Launcher (Command+space)"
(dtlaunch -show) and the settings.  Both are cascades because the status
area is a homogeneous menu bar and refuses any other child (measured:
"Attempt to add wrong child type").

McdeSys's Linux disk backend now lists lvm and crypt volumes; the root of a
host with LVM was missing from every disk list before (measured: only
/boot and /boot/efi stood on the desktop, the root now appears as
"System").

Measured under Xvfb with xdotool:
  - the desktop shows efi, boot and System in the corner
    (docs/screenshots/leopard/Desktop-mcde.png);
  - a double click on System opens "File Manager - kitt:ROOT";
  - the person menu says "lotherk", with "Accounts..." and "Log Out...";
  - the magnifier opens its menu; "Launcher (Command+space)" starts dtlaunch
    (-show);
  - test_sysinfo lists the root volume; make lib/McdeSys, programs/dtwm,
    programs/dtbar exit=0.

Open (follow-ups): the front panel's running-program dots, the volume
hot-plug (t0083), and the desktop icons' text colour from the palette
(they use the session's background with black text today).
2026-11-14 13:39:17 +00:00