Commit Graph
10 Commits
Author SHA1 Message Date
lotherk e58da8f43f dtchat: add the CDE desktop integration (T2.7)
programs/types/dtchat.dt defines ACTION Dtchat (Chat, icon Dtchat, EXEC dtchat, NO_STDIO) and is merged into every locale through the types template; Internet/Dtchat joins the App-Manager list. Three icon sizes (16/32/48) draw a speech bubble with three dots. Dtchat app-defaults install into app-defaults/C with the fixed fonts and 760x540 geometry, and dtchat.msg builds a dtchat.cat catalog for the UI strings. The action was executed through dtaction with DTDATABASESEARCHPATH (a test copy wrote its marker file), and the icons decode as XPM. make mcde-host is still waiting for the build lock (pid 1207058).
2026-11-16 19:05:08 +00:00
lotherk df81373057 MCDE: the WEB_URL data type and the hanging test_sysload child (t0303)
A .url file is a WEB_URL now (the reference sdturl.dt): a text file
whose content is a URL, ACTIONS McdeWeb,Print, ICON Dtdata,
NAME_TEMPLATE %s.url, MIME text/x-url.  Measured in dtfile: test.url
shows the URL icon beside note.txt (screenshot).

test_sysload: the child that waits for a signal sets alarm(60), so a
hung or killed test no longer leaves it in pause() and blocks the
build lock with waitpid.
2026-11-16 13:04:42 +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 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 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 c13e16700b MCDE dtsystemsettings: Desktop & Screen Saver, with Test and Random (t0110)
Desktop and Screen Saver are one pane with the two tabs of the reference;
-pane screensaver still opens the saver's page (PaneFind gives the old id to
the pane).  The saver page has the list in two groups ("Screen Savers" and
"Pictures"), a running preview, Options..., Test, the start time in the
reference's seven steps (3/5/15/30 minutes, 1 and 2 hours, Never), the
password box and the notes for the corners and the energy pane.

  * "Use random screen saver" selects StartDtscreenRandom, a new action
    (programs/types/dtscreen.dt.src: dtscreen -mode random) that dtscreen
    resolves into one of its modes each time it starts.
  * Test starts the chosen saver fullscreen in an override-redirect window
    and stops it after eight seconds -- dtscreen has no input loop, and a
    session's saver is stopped by dtsession's lock, which a settings program
    does not have.
  * Options... writes dtscreen.<mode>.batchcount and dtscreen.<mode>.delay
    into the server's resources (where dtscreen reads them, resource.c) and
    records them in ~/.dt/screensaver; the preview restarts with them.
  * The start-time scale writes dtsession's saver timeout, as before.

Pictures are listed but not offered: dtscreen's image mode has no picture
folder source of its own, so a folder entry would write a setting nobody
reads.  "Show with clock" and the hot corners wait for a clock mode in
dtscreen and for the Expose & Spaces pane; the energy warning waits for the
Energy Saver pane (there is no DPMS time to compare with yet).  Those three
are named in the pane itself.

tools/mcde-shot.sh: DTDATABASESEARCHPATH is comma-separated now -- that is
the separator DtEnvMap uses for it; with colons DtDb stays half-loaded and
actions are not found (the preview said "Action StartDtscreenSwarm was not
found"; with commas the savers run).  The data types come with it: a dtfile
window in the test home shows the PNG and text icons instead of "??" (the
t0194 symptom).  The script also exports DTSCREENSAVERLIST as dtsession does,
through a Session() function because the list has spaces.

Measured under Xvfb with xdotool:

  - the page shows the two groups, Swarm chosen and running in the preview
    (docs/screenshots/leopard/System-Preferences-Desktop-and-Screen-Saver-
    mcde.png);
  - Test covers the screen with the saver (...-Test-mcde.png) and the pane is
    back eight seconds later;
  - Random replaces the preview's process: "dtscreen -mode swarm" became
    "dtscreen -mode random" (pgrep), and dtscreen itself reports "random
    mode chose image" when run with -mode random;
  - Options... with the delay moved writes "dtscreen.swarm.batchcount: 100"
    and "dtscreen.swarm.delay: 530000" into RESOURCE_MANAGER and
    "mode=swarm" / "batchcount=100" / "delay=530" into ~/.dt/screensaver;
  - make check: test_panes PASS (new alias checks).
2026-11-14 10:49:54 +00:00
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
lotherkandClaude Opus 5.5 d95f0fc8af mcde: dtappscan, the installed applications by category
CDE's application manager shows a fixed list, installed or not.
dtappscan reads the desktop entries of the installed packages (Desktop
Entry Specification 1.5) and a table of the desktop's own programs, keeps
what is on the PATH, and writes CDE actions, icons (PNG to XPM) and one
folder per category in ~/.dt/Applications, at every login before the
session loads its actions.  The file manager has Applications among its
places, and the application manager opens the same folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 19:02:22 +00:00
lotherkandClaude Opus 5.5 43305571ac mcde: the front panel in a new order, its switch in the middle of the screen
Left of the workspace switch: Files (Home, Desktop, Documents, Downloads),
Mail (Text Editor, Calendar, Calculator, Icon Editor), Terminal (Disk
Utility, System Settings), Network (Remote Login, Sharing) and Desktop
Style with CDE's printers, applications and help in its drawer; right of
it only the running programs and the trash.  dtwm moves the panel so that
the switch stays in the middle of the screen, also when programs come and
go.  A program in a drawer is in the dock and not shown again on the
right.  dtfile shows the network for the folder ~/Network, which the panel
opens; the home folders are made at login.  Icons for the disk and the
network; dtremotelogin asks for user@computer and runs ssh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-11 18:49:07 +00:00
lotherkandClaude Opus 5.5 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