# MCDE — the Makronix Common Desktop Environment MCDE is a fork of [CDE](https://sourceforge.net/projects/cdesktopenv/), 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](docs/screenshots/desktop.png) ![System Settings, one window with all panes](docs/screenshots/system-settings.png) ## 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. ```sh ./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](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](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 - Repository: - In Makronix: `ext/src/mcde`, a submodule; the desktop is built by `make release` and installed to `/usr/pkg/dt`. - Upstream CDE: MCDE is not a CDE release and does not speak for the CDE project. Bugs belong in the MCDE repository.