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).
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.
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>