Commit Graph
13 Commits
Author SHA1 Message Date
lotherkandClaude Sonnet 5.5 c01da186a7 MCDE: dtksh is out; dterror.ds is a Motif program; dtterm keeps starting the login shell
Konrad, 2026-11-14: "was soll dtksh ueberhaupt sein... einfach ne shell von
CDE? fuck it. schmeiss das komplett raus aus MCDE."  dtksh is CDE's ksh93
with Motif bindings for scripting dialogs; its bundled ksh93 (AT&T ast's
bin/package) compiles and RUNS test programs while it builds, which a cross
build for NetBSD on a Linux host cannot do -- the reason wm/mcde did not
build for days ("cc: not found", userland-2026-11-14g.log).

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

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

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

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-14 09:12:55 +00:00
lotherk 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 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 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 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 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 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 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 6f68d92f75 mcde: dtsystemsettings, the settings of the computer in one window
Four bands of icons -- Personal, Hardware, Internet & Network, System --
from panes.c (plain C, PASS test_panes); a click opens the pane in the
window, Show All goes back, -pane ID opens one directly.  Own panes through
McdeSys: Sound (volume, mute), Network (the cards, addresses, SSID),
Bluetooth (state, on/off), Date & Time (a running clock, the zone), About
(everything mcde_sys_info knows).  Appearance, Desktop, Fonts, Language,
Screen Saver, Keyboard, Mouse, Startup open dtstyle, Printers dtprintinfo,
until they are drawn here; Accounts and Software Update are greyed.  dtbar's
System Settings... and the Sound/Bluetooth/Network Settings... items open
it.  New icons: a 48-pixel Makronix logo, 32-pixel network and Bluetooth.
Seen on Xvfb with dtwm and dtbar, sound against a private PulseAudio.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 12:24:42 +00:00
lotherkandClaude Opus 5.5 e8240130d8 mcde: dtbar, the bar at the top with the menus of the active program
include/Mcde/GlobalMenu.h is the protocol (selection _MCDE_BAR_S<n>,
_MCDE_MENU on the program's window, _MCDE_ACTIVE_MENU on the root, client
messages to activate and refresh).  libDtSvc's McdeGlobalMenu.c, started by
DtInitialize, finds every XmMenuBar with an Xt create hook, hides it while
the bar runs and writes its tree; a click in the bar calls the button's own
callback -- no Motif patch, every CDE program takes part.  The text form is
McdeMenuModel.c with its test (PASS test_menumodel).  dtbar: M menu (dtaction
Dtstyle, Dtterm, Dtfile, LockDisplay, ExitSession), the program's menus, the
clock; started by Xsession.d/0090.dtbar.  The Mcde headers are installed.
Tested on Xvfb with dtwm and dtcalc: its menu bar leaves its window, Options
and Help are in the bar, Options > Memory Registers opens dtcalc's dialog.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-10 07:27:29 +00:00
lotherkandClaude Opus 5.5 07c3ce19f0 mcde: dtlaunch, the launcher: hot key, programs, snippets, clipboard history, calculator
programs/dtlaunch: Alt+space (Dtlaunch*hotkey) opens a field and a list;
matches programs in $PATH, ~/.dt/snippets (keyword TAB text), the
clipboard history (polled CLIPBOARD, 50 entries, memory only) and
calculations (=12*(3+4)).  Return starts the program or puts the text on
CLIPBOARD and PRIMARY.  One per display (_MCDE_DTLAUNCH); a second start
opens the first.  C99/POSIX + Xt/Motif, no warnings with -Wpedantic.
model.c (no X) with test_model.c: make check PASS.  Started in every
session by config/Xsession.d/0080.dtlaunch.  Tested on Xvfb: snippet and
result reach the clipboard (build/mcde-shots/dtlaunch-*.png).
tools/mcde-linux.sh: check mode.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-09 20:41:14 +00:00
lotherkandClaude Opus 5.5 3b2a54c64b ext/src/mcde: import CDE 2.5.3 and pkgsrc wm/cde unchanged (the base of the MCDE fork)
cde-2.5.3.tar.gz, SHA512 a01b413b... as in pkgsrc distinfo; recipe from
pkgsrc 3c1118e94432.  Added with -f: CDE's .gitignore hides 612 files of
the archive.

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