Commit Graph
179 Commits
Author SHA1 Message Date
lotherk ff3e93ee10 McdeSys: the NetBSD disk and mount errors in the catalog (t0282)
disk_netbsd.c (16 calls) and mount_netbsd.c (2) are catalogued now: messages
218-233 for the new sentences (no hw.disknames, a %s partition cannot be
mounted/checked, no %s here, the name rule with blanks and 32 characters, the
new partition did not appear, no /etc/mtree, repairing permissions needs the
administrator, no mount table) and the numbers that already existed for the
same texts as on Linux (no disk %s, not mounted, the system's, erasing needs
the administrator, no drive, holds the system, mounted on, no room for the
mounts).  German copy in
programs/localized/de_DE.UTF-8/msg/mcdesys.msg with the same numbers.

Verification: both files pass
x86_64--netbsd-gcc -std=gnu11 -fsyntax-only -Wall with the tree's sysroot
(they are only compiled on NetBSD).  The catalog was measured through
mcde_sys_msg (the function the backend calls): LANG=C "No list of disks
(hw.disknames).", "A name has letters, digits, blanks, - and _, at most 32.",
"Only the administrator can repair permissions."; LANG=de_DE.UTF-8 "Keine
Plattenliste (hw.disknames).", "Ein Name hat Buchstaben, Ziffern, Leerzeichen,
- und _, höchstens 32.", "Nur der Administrator kann die Rechte reparieren."

make mcde-linux was refused by the build lock: another session holds it
(tools/build-lock.sh tools/userland.sh, pid 3102819) -- one build at a time,
root AGENTS.md.  The two changed sources are NetBSD-only, so the Linux
library is unaffected; the Linux build, check and plist run follows when the
lock is free.
2026-11-16 12:12:39 +00:00
lotherk 5f1d166ac8 McdeSys: net, logs and the Linux disk/mount errors in the catalog (t0282)
net.c (11 calls), logs.c (9), disk_linux.c (13) and mount_linux.c (1) are
messages 187-217 of mcdesys.cat now: no interfaces, no card of that name,
the network-settings administrator sentence, the address checks (IPv4,
subnet mask, router, IPv6 with prefix, DNS, domain), the DHCP client ID
rule; the log sentences (no room, no name, inotify missing, cannot be
watched/read, kqueue is a follow-up on this system, no buffer); the disk
sentence set (lsblk/udisksctl missing, no such disk, not mounted, the
system's, cannot be checked, erasing needs the administrator, the name rule,
no drive, holds the system, mounted on, no permissions list); "No
/proc/mounts."  German copy with the same numbers in
programs/localized/de_DE.UTF-8/msg/mcdesys.msg.

Measured with a runner (setlocale + the public calls): LANG=C "Only the
administrator can change the network settings: click the lock first." and
"This log cannot be read."; LANG=de_DE.UTF-8 "Nur der Administrator kann die
Netzwerkeinstellungen ändern: zuerst entsperren." and "Dieses Log kann nicht
gelesen werden."
make mcde-linux MCDE_DIRS="install lib/McdeSys" and "install
programs/localized/C/msg" exit=0; "check lib/McdeSys": # FAIL: 0, exit=0;
MCDE_DIRS=plist: ok.
2026-11-16 12:09:36 +00:00
lotherk 777bd7c8e6 McdeSys: netbsd.c in the catalog, German measured (t0282)
The NetBSD backend's 79 mcde_sys_fail calls are catalogued now: 43 new
messages (144-186) for its own sentences plus the numbers that already
existed for the same texts (cannot write, out of memory, no such service,
the administrator sentences, no account, no network card, the comments, the
lock as set/clear two messages, unknown power action).  The new ones: did
not start, count/list the processes, ntp.conf and /etc/myname, read/read with
strerror, beside a file, the touchpad administrator/no touchpad/setting could
not be written, DRVGETEVENT, PKG_PATH, salt, the update source (not set, does
not answer, not allowed), the Wi-Fi scan/renew administrator sentences,
secure virtual memory, mdnsd, processes change too fast, outputs.master, the
Wi-Fi name/password rule, hashing, the server not installed (with a name),
swap encryption unknown/sysctl, the system's CPU times/disk counters/
interfaces/memory/number of processors, no place for state/value, cgd, npf,
too many settings, dhcpcd renew/start.  German copy in
programs/localized/de_DE.UTF-8/msg/mcdesys.msg with the same numbers.

netbsd.c is not compiled on this Linux host: it passes
x86_64--netbsd-gcc -std=gnu11 -fsyntax-only -Wall with the tree's sysroot.
The catalog itself was measured through mcde_sys_msg (the function the
backend calls), LANG=C vs LANG=de_DE.UTF-8:
154 "Changing the touchpad needs the administrator." / "Das Touchpad zu
ändern braucht den Administrator.",
165 "... (a password has 8 to 63 characters, no quotes)." / "... (ein
Passwort hat 8 bis 63 Zeichen, keine Anführungszeichen).",
176 "The update source is not allowed: ..." / "Die Update-Quelle ist nicht
erlaubt: ...".
make mcde-linux MCDE_DIRS="install lib/McdeSys" and "install
programs/localized/C/msg" exit=0; "check lib/McdeSys": # FAIL: 0, exit=0;
MCDE_DIRS=plist: ok.
2026-11-16 11:57:25 +00:00
lotherk 8d129c56c4 McdeSys: the rest of linux.c in the catalog, German measured (t0282)
linux.c's remaining sentences are messages 107-143 of mcdesys.cat now (the
NetworkManager block was 98-106): unknown power action, no sound server and
no mixer / the mixer tells no volume / no mixer, bluetoothctl missing, the
touchpad settings are outside the desktop, the password/change/update/service
administrator sentences, apt-get cannot tell what is new, cannot read /proc,
the file system keeps no comments / no lock, read/remove/write the comment,
cannot open a file, set/clear the lock (two messages, the word is not a
parameter any more), cannot write /etc/hostname, no hostname tool,
timedatectl is not installed, no such service, the server is not installed,
avahi-browse missing, secure virtual memory / cgd / npf are NetBSD's,
/proc/stat, /proc/meminfo, /proc/net/dev, /proc/diskstats and the kernel
event socket cannot be read, the two "tells no processor/memory" sentences.
German copy in programs/localized/de_DE.UTF-8/msg/mcdesys.msg.

Measured with a runner (setlocale + the public calls): LANG=C "Cannot
write /etc/hostname: Permission denied." and "Only the administrator can
switch a service."; LANG=de_DE.UTF-8 "/etc/hostname kann nicht geschrieben
werden: Keine Berechtigung." and "Nur der Administrator kann einen Dienst
umschalten."
make mcde-linux MCDE_DIRS="install lib/McdeSys" and "install
programs/localized/C/msg" exit=0; "check lib/McdeSys": # FAIL: 0, exit=0;
MCDE_DIRS=plist: ok.
2026-11-16 11:48:04 +00:00
lotherk 086189b68f McdeSys: linux.c's network errors in the catalog, German measured (t0282)
The NetworkManager block of linux.c is messages 98-106 of mcdesys.cat now:
nmcli not there / not installed (the settings cannot be changed here), only
the administrator can join a Wi-Fi network, the network name cannot be used,
NetworkManager has no settings for a card, nmcli does not tell the settings
of a connection, NetworkManager did not take the settings or could not bring
a connection up again, there is no network card of that name.  German copy in
programs/localized/de_DE.UTF-8/msg/mcdesys.msg.

Measured with a runner (setlocale + the public calls):
LANG=C: "Only the administrator can join a Wi-Fi network." and
"NetworkManager has no settings for nosuchcard0."; LANG=de_DE.UTF-8: "Nur der
Administrator kann einem WLAN beitreten." and "NetworkManager hat keine
Einstellungen für nosuchcard0."
make mcde-linux MCDE_DIRS="install lib/McdeSys" and "install
programs/localized/C/msg" exit=0; "check lib/McdeSys": # FAIL: 0, exit=0;
MCDE_DIRS=plist: ok.
2026-11-16 11:38:54 +00:00
lotherk e0ab05b677 McdeSys: common.c's remaining errors in the catalog, German measured (t0282)
The rest of common.c's sentences are messages 74-97 of mcdesys.cat now: the
exec failure line, no host name, no time zone list, no such time zone, the
administrator for the time zone, cannot link, cannot replace (the same text
as message 59, reused), no command line for a process, no room for the CPU
times / memory / network counters / disk counters / process list, that is no
process to signal, the process belongs to somebody else, it is gone, cannot
signal it, no file (and no room) for the comment, no file for the lock, no
name a computer can take, no place for the time service state, cannot set the
clock.  German copy in programs/localized/de_DE.UTF-8/msg/mcdesys.msg.

Measured with a runner (setlocale + the public calls): LANG=C
"\"bad name!\" is not a name a computer can take.", "There is no time zone
\"No/Such\".", "No place for the list of processes."; LANG=de_DE.UTF-8
"\"bad name!\" ist kein Name, den ein Rechner annehmen kann.", "Es gibt keine
Zeitzone \"No/Such\".", "Kein Platz für die Prozessliste."
make mcde-linux MCDE_DIRS="install lib/McdeSys" and "install
programs/localized/C/msg" exit=0; "check lib/McdeSys": # FAIL: 0, exit=0;
MCDE_DIRS=plist: ok.
2026-11-16 11:26:21 +00:00
lotherk 893313c873 McdeSys: the device event and mount errors in the catalog (t0282)
events.c's five and mount.c's one mcde_sys_fail calls are messages 68-73 of
mcdesys.cat now: the kernel's event socket cannot be opened or bound, cannot
open /dev/drvctl (is the drvctl pseudo-device configured?), device events
have no source on this system, no room for the event, no room for the
mounts.  German copy in
programs/localized/de_DE.UTF-8/msg/mcdesys.msg with the same numbers.

Measured with a runner (setlocale + mcde_sys_disk_event_read(-1, ...) and
mcde_sys_mounts(m, 0)): LANG=C "No room for the event." / "No room for the
mounts."; LANG=de_DE.UTF-8 "Kein Platz für das Ereignis." / "Kein Platz für
die Einhängepunkte."
make mcde-linux MCDE_DIRS="install lib/McdeSys" and "install
programs/localized/C/msg" exit=0; "check lib/McdeSys": # FAIL: 0, exit=0;
MCDE_DIRS=plist: ok.
2026-11-16 11:20:15 +00:00
lotherk a584ad9c45 McdeSys: the sharing and account errors in the catalog (t0282)
share.c's seven and users.c's six mcde_sys_fail calls are messages 57-67 of
mcdesys.cat now: cannot write beside/into a file, cannot replace, only the
administrator can change what is shared, no folder that can be shared; no
name for an account, an account exists already, a name has no colon, only the
administrator can add/delete an account (unlock first), no such account.  The
German copy in programs/localized/de_DE.UTF-8/msg/mcdesys.msg keeps the
numbers.

Measured with a runner (setlocale + mcde_sys_shares_set on a missing folder,
mcde_sys_user_delete on a missing login): LANG=C "Only the administrator can
change what is shared." and "There is no account \"nosuchuser_xyz\".";
LANG=de_DE.UTF-8 "Nur der Administrator kann ändern, was freigegeben ist."
and "Es gibt kein Konto \"nosuchuser_xyz\"."
make mcde-linux MCDE_DIRS="install lib/McdeSys" and "install
programs/localized/C/msg" exit=0; "check lib/McdeSys": # FAIL: 0, exit=0;
MCDE_DIRS=plist: ok.
2026-11-16 11:12:31 +00:00
lotherk b674c3d2b7 McdeSys: the printer errors in the catalog, German measured (t0282)
printers.c's eighteen mcde_sys_fail calls are messages 43-56 of mcdesys.cat
now: no place for the printers, no CUPS (lpstat/lpadmin), CUPS did not answer
or did not take the default printer/the printer/the removal, no printer was
named, the default printer / adding / removing needs the administrator, the
printer's name and address must be plain, no mDNS browser and the browser did
not answer.  German copy in
programs/localized/de_DE.UTF-8/msg/mcdesys.msg with the same numbers.

Measured with a runner (setlocale + the public calls):
LANG=C: "The printer's name and address must be plain (letters, digits, - and
_; ipp://...)." and "No printer was named."; LANG=de_DE.UTF-8: "Name und
Adresse des Druckers müssen schlicht sein (...)" and "Es wurde kein Drucker
genannt."
make mcde-linux MCDE_DIRS="install lib/McdeSys" and "install
programs/localized/C/msg" exit=0; "check lib/McdeSys": # FAIL: 0, exit=0;
MCDE_DIRS=plist: ok.
2026-11-16 11:05:42 +00:00
lotherk 22aaaa5d84 McdeSys: the sound errors in the catalog, German measured (t0282)
sound.c's four error sentences are messages 39-42 of mcdesys.cat: the sound
server tells no volume, there is no sound file "%s", no player is installed,
cannot start %s.  The German copy in
programs/localized/de_DE.UTF-8/msg/mcdesys.msg keeps the numbers.

Measured with a runner (setlocale + mcde_sys_sound_play on a missing file):
LANG=C "There is no sound file \"/nonexistent/ding.wav\"."; LANG=de_DE.UTF-8
"Es gibt keine Tondatei \"/nonexistent/ding.wav\"."
make mcde-linux MCDE_DIRS="install lib/McdeSys" and "install
programs/localized/C/msg" exit=0; "check lib/McdeSys": # FAIL: 0, exit=0;
MCDE_DIRS=plist: ok.
2026-11-16 10:59:19 +00:00
lotherk dcee228451 McdeSys: the backup errors in the catalog, German measured (t0282)
backup.c's 23 mcde_sys_fail calls are messages 22-38 of mcdesys.cat now:
cannot write, the backup disk mounted somewhere else, the six
administrator sentences (set up, change, switch, back up, look into,
restore), BorgBackup missing, password too short, choose a disk, bad numbers,
crontab/dtbackup missing, no disk set up, nothing to restore, cannot go to.
The German copy in programs/localized/de_DE.UTF-8/msg/mcdesys.msg uses the
same numbers; these texts are shown in System Settings (Xft), so they carry
proper umlauts.

Measured with a runner (setlocale + the public calls):
LANG=C: "Only the administrator can set up the backup.", "Only the
administrator can switch the backup.", "Only the administrator can restore
from the backups."; LANG=de_DE.UTF-8: "Nur der Administrator kann die
Sicherung einrichten.", "... die Sicherung umschalten.", "... aus den
Sicherungen wiederherstellen."
make mcde-linux MCDE_DIRS="install lib/McdeSys" and "install
programs/localized/C/msg" exit=0; "check lib/McdeSys": FAIL 0, exit=0;
MCDE_DIRS=plist: ok.
2026-11-16 10:52:58 +00:00
lotherk 7507b51850 McdeSys: the network mount errors in the catalog, German measured (t0282)
netmount.c's twelve sentences are messages 10-21 of mcdesys.cat now: no
computer name, showmount/smbclient/sshfs/mount_afp/NFS/umount not there, no
list of shares for that kind, no address this computer can connect to, a
password that cannot be used, a scheme that is not there yet, no folder.
The German copy in programs/localized/de_DE.UTF-8/msg/mcdesys.msg keeps the
same numbers (ASCII in these low-level texts: they also reach programs
without a render table).

Measured with a small runner (setlocale + the public calls):
LANG=C: "bogus:// cannot be connected to here yet.",
"\"smb://bad host/share\" is no address this computer can connect to.",
"No folder."; LANG=de_DE.UTF-8 (localedef/LOCPATH): "bogus:// kann hier noch
nicht verbunden werden.", "\"smb://bad host/share\" ist keine Adresse, zu
der dieser Rechner verbinden kann.", "Kein Ordner."
make mcde-linux MCDE_DIRS="install lib/McdeSys", "install
programs/localized/C/msg" and "check lib/McdeSys" exit=0; MCDE_DIRS=plist:
"3487 installed names under dt/, 8682 in the PLISTs", ok.
2026-11-16 10:46:34 +00:00
lotherk e6202a8019 McdeSys: the tool errors come from a catalog, German measured (t0282)
common.c's tool runner built its sentences as format strings, so every
dialog that shows mcde_sys_error() was English.  They are set 1 of
lib/McdeSys/mcdesys.msg now (9 messages: not there, cannot start, failed
with status, no pipe, no answer within N seconds, out of memory, the program
is not installed, the connector ended without an answer, cancelled), read by
lib/McdeSys/text.c (mcde_sys_msg, plain catopen/catgets; NLSPATH is set the
way DtSvc does when the session has none, from -DMCDE_DT_TOP=$(prefix)).
The German copy is programs/localized/de_DE.UTF-8/msg/mcdesys.msg, built by
msg.C.am into lib/nls/msg and listed in the PLIST (C plain, ${PLIST.nls} for
German).  A library does not call setlocale; the program does.

mcdesoundd gets no catalog: its only text is the log of a background daemon,
and the system layer stays English (AGENTS.md, language point 6).

Measured: a small program (setlocale + mcde_sys_run) prints
"/nonexistent/tool is not there." and "/bin/false did not succeed
(status 1)." with LANG=C, and "/nonexistent/tool ist nicht vorhanden." /
"/bin/false war nicht erfolgreich (Status 1)." with LANG=de_DE.UTF-8
(localedef/LOCPATH).  make mcde-linux MCDE_DIRS="install lib/McdeSys" and
"install programs/localized/C/msg" exit=0; MCDE_DIRS=plist: "3487 installed
names under dt/, 8682 in the PLISTs", ok.
2026-11-16 10:38:43 +00:00
lotherk c331971ddd MCDE dtpaint: a message catalog, German measured (t0282)
dtpaint builds its menus in code, so its labels are catalogued:
programs/dtpaint/dtpaint.msg (set 1, 23 messages: the six menu titles, the
items of File/Edit/View/Image/Colors/Help, the About title and the status
line), the German copy in programs/localized/de_DE.UTF-8/msg/dtpaint.msg,
built by msg.C.am and listed in the PLIST (C plain, ${PLIST.nls} for
German).  catopen/catgets itself, setlocale in main.

dtpaint has no render table (core font): a UTF-8 "ü" in the status line came
out as two latin-1 characters ("Menü"), so the German string says
"Hilfe-Menue" instead (recorded in AGENTS.md).

Measured on Xvfb (1280x800, fresh HOME, ttsession + dtwm), de_DE.UTF-8 via
localedef/LOCPATH: menus "Datei Bearbeiten Ansicht Bild Farben Hilfe",
status "Hilfe: Hilfe-Themen im Hilfe-Menue." (/tmp/opencode/dtpa-de.png);
LANG=C: "File Edit View Image Colors Help" and the English status
(/tmp/opencode/dtpa-c.png).  make mcde-linux MCDE_DIRS="install
programs/dtpaint" and "install programs/localized/C/msg" exit=0;
MCDE_DIRS=plist: "3486 installed names under dt/, 8680 in the PLISTs", ok.
2026-11-16 10:30:14 +00:00
lotherk 6a620b125a MCDE dtphoto: a message catalog, German measured (t0282)
dtphoto's own sentences and titles come from programs/dtphoto/dtphoto.msg
(set 1, 5 messages: the toolbox window title "Tools", the status line
"Scratch: 1.2M/50M", the "Doc: %dK/%dK" format, the open and the save
error), the German copy in programs/localized/de_DE.UTF-8/msg/dtphoto.msg,
built by msg.C.am and listed in the PLIST (C plain, ${PLIST.nls} for
German).  Like dtlaunch it calls catopen/catgets itself and setlocale in
main before its first message.

The menus stay as they are: dtphoto.menu follows
docs/reference/photoshop-ui.csv -- the programme's look -- and the command
lookup matches those English labels, so they are not a catalog.

Measured on Xvfb (1280x800, fresh HOME, ttsession + dtwm), de_DE.UTF-8 via
localedef/LOCPATH: the toolbox is titled "Werkzeuge", the status line reads
"Dok: 225K/1125K" and "Arbeitsspeicher: 1.2M/50M" (/tmp/opencode/dtp-de.png);
LANG=C: "Tools", "Doc: 225K/1125K", "Scratch: 1.2M/50M"
(/tmp/opencode/dtp-c.png).  make mcde-linux MCDE_DIRS="install
programs/dtphoto" and "install programs/localized/C/msg" exit=0;
MCDE_DIRS=plist: "3485 installed names under dt/, 8678 in the PLISTs", ok.
2026-11-16 10:18:17 +00:00
lotherk 121fab6753 MCDE dttoolbox: a message catalog, German measured (t0282)
dttoolbox's own texts come from programs/dttoolbox/dttoolbox.msg (set 1, 2
messages: the "ToolChest" window title and the "No ToolChest menu" label of
the empty chest), the German copy in programs/localized/de_DE.UTF-8/msg/
dttoolbox.msg, built by msg.C.am, listed in the PLIST (C plain,
${PLIST.nls} for German).  Like dtlaunch it calls catopen/catgets itself and
setlocale before its first message.  The menu labels come from the person's
chestrc (~/.chestrc or the installed one), which is their file and stays as
written.

Measured on Xvfb (1280x800, fresh HOME, ttsession + dtwm, DTTB_CHESTRC on a
missing file so the empty chest shows): de_DE.UTF-8 via localedef/LOCPATH
gives "Werkzeugkiste" and "Kein ToolChest-Menü" (/tmp/opencode/dtb-de.png),
LANG=C "ToolChest" and "No ToolChest menu" (/tmp/opencode/dtb-c.png).
make mcde-linux MCDE_DIRS="install programs/dttoolbox" and
"install programs/localized/C/msg" exit=0; MCDE_DIRS=plist: "3484 installed
names under dt/, 8676 in the PLISTs", ok.
2026-11-16 10:10:21 +00:00
lotherk e3d8227249 MCDE: a backdrop per workspace (t0290)
dtsystemsettings has a Workspace menu on the Desktop page: This
Workspace (the active one) or one of the named workspaces, read from
DtWsmGetWorkspaceList.  A chosen backdrop goes to that workspace: dtwm
learned f.change_backdrop_ws INDEX PATH PIXMAP STYLE (the same parse as
f.change_backdrop, with the workspace index first) and
McdeBackdropFromFile on pSD->pWS[INDEX]; SetNewBackdrop keeps the choice
with SaveWorkspaceResources, so dtsession carries it to the next login
and ChangeToWorkspace shows it.  Measured under Xvfb: the menu lists
This Workspace, One, Two, Three, Four; Two + Ankh.bm printed
'dtwm: backdrop ws=1 .../backdrops/Ankh.bm style=0'.  WmMain.c now
includes WmFunction.h (the MCDE prototypes were implicit).
2026-11-16 10:05:40 +00:00
lotherk 9b41251028 MCDE dtlaunch: a message catalog, German measured (t0282)
dtlaunch's visible texts come from programs/dtlaunch/dtlaunch.msg (set 1, 3
messages: the hint line under the field, and the two Parental Controls
sentences), the German copy in programs/localized/de_DE.UTF-8/msg/
dtlaunch.msg, built by msg.C.am and listed in the PLIST (C plain,
${PLIST.nls} for German).  dtlaunch does not link libDtSvc, so it calls
catopen/catgets itself (Dt/MsgCatP.h's CATGETS needs _DtCatgets); its
Makefile now passes -DCDE_INSTALLATION_TOP for the NLSPATH fallback.

The list's pane entries are already translated: dtlaunch reads them from
`dtsystemsettings -list-panes`, which uses the catalog of 89e41554e6.

Measured on Xvfb (1280x800, fresh HOME, ttsession + dtwm, dtlaunch -show
-nograb), de_DE.UTF-8 via localedef/LOCPATH:
"Tippen: ein Programm, eine Einstellung, einen Schnipsel oder =1+2"; LANG=C:
"Type to find a program, a setting, a snippet, or =1+2" (screenshots
/tmp/opencode/dtl-de.png, /tmp/opencode/dtl-c.png).
make mcde-linux MCDE_DIRS="install programs/dtlaunch" and
"install programs/localized/C/msg" exit=0; MCDE_DIRS=plist: "3483 installed
names under dt/, 8674 in the PLISTs", ok.
2026-11-16 09:56:46 +00:00
lotherk 977d2b9d57 MCDE dtsystemsettings: a message catalog, German measured (t0282)
Following dtbar (2c229d08c6): the categories, the panes, the window title and
"Show All" come from dtsystemsettings' catalog -- English source
programs/dtsystemsettings/dtsystemsettings.msg (set 1, messages 1-32: the
four categories, 26 panes by ID, the title, Show All), German copy in
programs/localized/de_DE.UTF-8/msg/dtsystemsettings.msg, gencat rule in
msg.C.am, PLIST C plain and ${PLIST.nls} for the German one.

main.c calls setlocale(LC_ALL, "") first: the window title is an argument of
XtVaAppInitialize, and a catalog opened while the locale was still C would
stay the C one for the whole process (measured: first attempt stayed English
in every label).

Measured on Xvfb (1280x800, fresh HOME, ttsession + dtwm), de_DE.UTF-8 via
localedef/LOCPATH: title "Systemeinstellungen", "Alle zeigen", categories
"Persönlich / Hardware / Internet & Netzwerk / System" and the panes
"Darstellung", "Schreibtisch & Bildschirmschoner", "Sprache", "Sicherheit",
"Standardprogramme", "Ton", "Bildschirme", "Tastatur & Maus", "Drucker",
"Energiesparmodus", "Internet-Konten", "Netzwerk", "Freigaben",
"Systeminformation", "Datum & Uhrzeit", "Starten", "Kindersicherung",
"Benutzer", "Software-Aktualisierung", "Sicherung", "Startvolume",
"Bedienungshilfen"; LANG=C the English labels.  make mcde-linux
MCDE_DIRS="install programs/dtsystemsettings" and "install
programs/localized/C/msg" exit=0; MCDE_DIRS=plist: "3482 installed names
under dt/, 8672 in the PLISTs", ok.
2026-11-16 09:48:19 +00:00
lotherk c077094484 MCDE types: /usr/dt/bin in the actions replaced by the install prefixed binary
Found by dragging a file from dtfile onto the printer in the front panel: the
DtPrint action runs dtaction Print, whose action in datatypes.dt called
/usr/dt/bin/dtlp -- a path no Makronix has (the installation is /usr/pkg/dt).
The dialog said "/usr/dt/bin/dtlp ... Check that the program exists".

69 occurrences in 14 .src files under programs/types now use
CDE_INSTALLATION_TOP, so the types are correct in the development
installation and in /usr/pkg/dt alike: datatypes, develop, dt, dtfile,
dthelp, dthelpprint, dthelptag, dtinfo, dtpad, ibm, miscImages,
unsupported, uxstd, xclients.  dt.dt.src's "Edit Dtwmrc" action also copies
from /usr/dt/config and /etc/dt/config; it now uses CDE_INSTALLATION_TOP and
CDE_CONFIGURATION_TOP.

dtcm.dt is a plain .dt (no .src, no preprocessing): there the paths are bare
program names (dtcm, dtcm_insert, dterror.ds), which the session's PATH
finds under the installation's bin.

Measured: make mcde-linux MCDE_DIRS="programs/types" then
"install programs/localized/C/types" exit=0; the installed datatypes.dt has
".../build/mcde-root/dt/bin/dtlp" and dtcm.dt has "dtcm_insert" (no
/usr/dt/bin left in the generated types except the /usr/dt/config line in
dt.dt.src, which is now CDE_INSTALLATION_TOP too).
2026-11-16 09:38:44 +00:00
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