lotherk 4fead8a3dc libDtChat tests: no /tmp/opencode, and test_i18n finds its catalogs
Two defects in the test suite, both of the kind that fails on another
machine but not on the one it was written on.

1. Seven tests put their scratch directories below /tmp/opencode --
   a directory of the environment they were written in, not of the
   system.  mkdtemp() returns NULL when the parent is missing, so on a
   machine without /tmp/opencode every one of them failed with a "NULL"
   check or perror("mkdtemp"), and nothing was wrong with the code under
   test.  dc_test_tmpdir() (dc_internal.h, instance.c) now uses $TMPDIR,
   or /tmp when it is unset or not absolute.

   Measured: after renaming /tmp/opencode away (sudo mv), make check in
   lib/libDtChat is 24/24; before the change the same run failed on
   test_identity, test_pair, test_store, test_instance, test_filexfer,
   test_local and test_i18n.

2. test_i18n takes <de.msg> <en.msg> but TESTS runs it without arguments
   (f46a914c added it to TESTS without a runner), so `make check' always
   reported "FAIL: test_i18n" with the usage line -- measured 2026-11-22
   on the merge build, and identically on build/mcde-host, so not a
   regression of that merge.  tools/mcde-tests.sh names the files and
   passes; the test now falls back to $srcdir (which automake's test
   driver exports) and finds them itself, the arguments still winning.

Test: make check in lib/libDtChat -> 24/24 PASS (was 23/24).  Both call
forms of test_i18n give "test_i18n: all ok": with the two arguments and
without them.  With /tmp/opencode renamed away the full check is green as
well, and the seven scratch directories appear under $TMPDIR when set.
2026-11-22 16:11:16 +00:00

MCDE — the Makronix Common Desktop Environment

MCDE is a fork of CDE, the Common Desktop Environment, reshaped into the desktop Makronix ships: the look of IRIX 4Dwm, the interaction of Mac OS X 10.4 where it is better, and CDE's own front panel where it is right.

It is a working desktop, not a theme: dtwm, the front panel, the top bar, the file manager, System Settings and the session manager are all here and all changed.

The MCDE desktop: IRIX icons, the front panel and a terminal

System Settings, one window with all panes

What MCDE changes

The desktop follows IRIX 4Dwm. The icons are the IRIX Foundation pictures rastered at 64x64 (tools/fti2xpm.py in the Makronix tree, from the .fti sources), a medium picks its own by file system — CD, DVD, diskette, tape, disk — the label is drawn on the backdrop with a shadow instead of into a tile, and the icon window is shaped to picture and text. The icons sit at the bottom of the stack: a raised window, a full screen program included, covers them, as 4Dwm's desktop does.

The top bar is the global menu of the program that has the keyboard. It is no focus target (_MCDE_NO_FOCUS): moving the pointer from a program to the bar leaves the keyboard where it was, so the bar keeps showing that program's menu and an item acts on the program the menu came from.

The front panel is CDE's, with its drawers and its own pointer. The programs kept on it live in ~/.dt/panel-apps and have a pane of their own, System Settings > Dock, which adds, removes and applies them by restarting dtwm.

System Settings is one window, 1022x550, minimum equal to maximum. Every pane lives in it; a pane taller than the window scrolls instead of growing it, the tab strip behaves as one radio group, and every pane has its own picture.

The keyboard is asked what it is before it is mapped: dtkeys checks hw.model first (Mac...), then usbdevs, because the internal keyboard of a MacBook may not be enumerated when the session starts. On Apple hardware Alt and Command keep their places; on a PC keyboard they are exchanged if asked.

The toolchest window is called dttoolchest and its menu is the session's own, not a second copy of the bar.

Building

MCDE is built like CDE: autoconf, GNU make, Motif and X11. On NetBSD (and Makronix) the build needs gmake, ksh93, gettext, bison, flex and Motif; the X11 tree provides the rest.

./autogen.sh
./configure --prefix=/usr/pkg/dt --with-x
gmake
gmake install

Makronix does not build it by hand: ext/src/mcde is a submodule of the Makronix repository, its pkgsrc recipe is ext/src/mcde/pkgsrc (and pkgsrc-motif for the Motif library), and make release in the Makronix tree builds and packages it with everything else.

Licence

MCDE is a fork of CDE. The code that came from CDE stays under the LGPL 2.0 or later — the full text is in COPYING — and a file that came from CDE keeps the notice it has. The files Makronix wrote for MCDE are under the CNCL 1.0, the Could Not Care Less License: no rights reserved, no obligations imposed, see LICENSE.CNCL.

The CNCL adds nothing on top of the LGPL for the CDE-derived work: if you redistribute MCDE, the LGPL applies to the parts that came from CDE, and the CNCL only says that Makronix's own additions ask nothing of you.

The IRIX Foundation icons are SGI's artwork, rastered from the .fti sources that came with IRIX 6.5; they are used here for the look they describe.

Where it lives

MCDE is not a CDE release and does not speak for the CDE project. Bugs belong in the MCDE repository.

S
Description
MCDE, the Makronix Common Desktop Environment (fork of CDE 2.5.3)
Readme LGPL-2.1
127 MiB
0 Stars 3 Watchers 0 Forks
Languages
C 85.7%
Roff 4.3%
C++ 3.3%
Makefile 3.2%
OMNeT++ MSG 1.2%
Other 1.7%