Files
makronix/docs/guide/chapters/mcde.xml
T
lotherk 9558ad4f07 www: the pages in the voice of docs/reference/website-voice.txt, license.html, new pictures
license.html carries the CNCL and the table of docs/LICENSES.md and is linked
from every page and the guide's template; shot-bar and shot-dtchat are used
by desktop.html and index.html (every href/src of www/*.html resolves).  The
guide no longer announces a photo editor (dtphoto exists).
2026-11-17 16:39:44 +00:00

272 lines
12 KiB
XML

<!-- License: CNCL 1.0 (Could Not Care Less), see LICENSE at the top of the tree. -->
<chapter id="mcde">
<title>MCDE: The Desktop</title>
<para>MCDE is the Makronix Common Desktop Environment, a fork of CDE 2.5.3.
CDE is the desktop that Sun, HP, IBM, DEC, SCO, Fujitsu and Hitachi
shipped on their workstations, and it has been open source since 2012.
MCDE keeps what made it good &#x2014; Motif, a quick and steady desktop
that does not need a fast machine &#x2014; and makes it one desktop that
works as a whole.</para>
<figure id="mcde-desktop-fig">
<title>The MCDE desktop</title>
<mediaobject>
<imageobject>
<imagedata fileref="@WWWIMG@/shot-desktop.png" format="PNG"/>
</imageobject>
</mediaobject>
</figure>
<para>MCDE is written in C99 against Motif, Xlib and X11. It uses no
other toolkit and no compositor, and it builds and runs on NetBSD and on
Linux through pkgsrc on both. Everything that differs between the
operating systems &#x2014; users, network, sound &#x2014; is behind one
layer, so that no program has to know which system it runs on.</para>
<sect1 id="mcde-login">
<title>Logging in</title>
<para>The graphical login is <citerefentry><refentrytitle>dtlogin</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
It shows the users of the machine and a field for the password; the
<guimenu>Options</guimenu> menu chooses the session type and the
language. After login, <citerefentry><refentrytitle>dtsession</refentrytitle><manvolnum>1</manvolnum></citerefentry>
starts the session: the window manager, the front panel, the bar at the
top and the programs that are set to open at login.</para>
<para><guimenuitem>Lock Screen</guimenuitem> in the Makronix menu locks
the session without ending it; <guimenuitem>Log Out</guimenuitem> ends
it and returns to <command>dtlogin</command>. A session can be saved on
logout and restored at the next login; the setting is in System
Settings, under <guilabel>Login</guilabel>.</para>
</sect1>
<sect1 id="mcde-bar">
<title>The bar at the top</title>
<para>One bar runs along the top of the screen. On the left is the
Makronix menu: about this computer, software update, system settings,
your favourites and recent items, force quit, sleep, restart, shut down,
lock the screen and log out. Next to it are the menus of the program
you are working with. They leave the program's window and stand in the
bar, for every MCDE program, without a change to the program itself.</para>
<para>On the right are the status items: the volume (a slider in the
menu, a mute switch, and the wheel over the speaker), Bluetooth, the
network, the battery on a machine that has one, and the clock.</para>
</sect1>
<sect1 id="mcde-panel">
<title>The front panel</title>
<para>CDE's front panel stays as it is: the controls in the middle, the
drawers above them, the workspace switches, and the trash. Left of the
trash the panel shows the programs that are open and have no place in
the panel yet; a click brings the window forward. The right button
keeps one in the panel, or you can drag it to the left; from then on it
is there at every login. A click starts it, or brings it forward when it
is already running.</para>
<para>The workspaces are in the middle of the panel. A window can be
sent to another workspace from its window menu; the panel's workspace
buttons switch between them. The number of workspaces is set in the
window manager's settings.</para>
</sect1>
<sect1 id="mcde-windows">
<title>Windows and the window manager</title>
<para><citerefentry><refentrytitle>dtwm</refentrytitle><manvolnum>1</manvolnum></citerefentry>
draws the frames. The title bar has the window menu on the left and the
minimize and maximize buttons on the right; the window menu moves,
resizes, raises, lowers, sends the window to a workspace, or closes it.
A double click on the title bar maximizes the window.</para>
<para>The window manager's configuration is
<filename>~/.dt/dtwmrc</filename>; without it, the system file
<filename>/usr/pkg/dt/config/C/sys.dtwmrc</filename> applies. The menu
that appears on the root window (the desktop) is defined there. Most
people never edit it: the settings that matter are in System
Settings.</para>
</sect1>
<sect1 id="mcde-dtfile">
<title>The file manager</title>
<para><citerefentry><refentrytitle>dtfile</refentrytitle><manvolnum>1</manvolnum></citerefentry>
is the file manager. A toolbar has Back and Forward &#x2014; every
window keeps its own history &#x2014; and the views. A sidebar holds the
places: the computer, your home, the desktop, documents and downloads,
and the free space of the disk is in the status line.</para>
<figure id="mcde-dtfile-fig">
<title>The file manager</title>
<mediaobject>
<imageobject>
<imagedata fileref="@WWWIMG@/shot-dtfile.png" format="PNG"/>
</imageobject>
</mediaobject>
</figure>
<para>The column view shows one column for each folder down to the one
you are in, and on the right what you selected: its icon, kind, size and
date. Files are copied and moved by dragging them; the trash is on the
front panel. The file manager also shows network places when the
sharing services are configured (<xref linkend="sharing"/>).</para>
</sect1>
<sect1 id="mcde-dtterm">
<title>The terminal</title>
<para><citerefentry><refentrytitle>dtterm</refentrytitle><manvolnum>1</manvolnum></citerefentry>
is the terminal. It has tabs: <literal>Ctrl+Shift+T</literal>
opens one, <literal>Ctrl+Shift+W</literal>
closes it, and <literal>Ctrl+Shift+Left</literal>
and <literal>Ctrl+Shift+Right</literal>
move between them. A program's title appears on its tab, and the window
title is the title of the tab in front. A profile gives a tab its font,
its colours and its command
(<guimenu>Window</guimenu>, <guimenuitem>New Tab with Profile</guimenuitem>).
<literal>Ctrl+Shift+D</literal>
splits a tab and puts another terminal below it. Started as
<command>dtterm -dropdown</command>, the terminal waits out of sight and
comes down from the top of the screen at <literal>F12</literal>; the next
press puts it back.</para>
<figure id="mcde-dtterm-fig">
<title>The terminal with two tabs</title>
<mediaobject>
<imageobject>
<imagedata fileref="@WWWIMG@/shot-dtterm-tabs.png" format="PNG"/>
</imageobject>
</mediaobject>
</figure>
<para>The terminal draws anti-aliased UTF-8 text in the Hack font, and
falls back to another font for characters Hack does not have. The
shell inside it is the login shell of your account; on a fresh account
it is <citerefentry><refentrytitle>sh</refentrytitle><manvolnum>1</manvolnum></citerefentry>.</para>
</sect1>
<sect1 id="mcde-programs">
<title>The other programs</title>
<variablelist>
<varlistentry>
<term><citerefentry><refentrytitle>dtpad</refentrytitle><manvolnum>1</manvolnum></citerefentry></term>
<listitem><para>The text editor. It edits plain text, has a
search and replace, and opens several files in one window.</para></listitem>
</varlistentry>
<varlistentry>
<term><citerefentry><refentrytitle>dtcalc</refentrytitle><manvolnum>1</manvolnum></citerefentry></term>
<listitem><para>The calculator: a normal calculator, a scientific
one and a programmer's one, in one window.</para></listitem>
</varlistentry>
<varlistentry>
<term><command>dtpaint</command></term>
<listitem><para>The paint program: lines, curves, shapes, fill,
text and zoom, in the colours of the release. It is for pictures
drawn by hand.</para></listitem>
</varlistentry>
<varlistentry>
<term><command>dtlaunch</command></term>
<listitem><para>The launcher, opened with
<literal>Alt+Space</literal>.
Type a few letters to find a program; type a keyword to find a text
snippet; leave the field empty to see what you copied last; type
<literal>=12*(3+4)</literal> and it shows 84. Return starts the
program or puts the text on the clipboard. Snippets live in
<filename>~/.dt/snippets</filename>.</para></listitem>
</varlistentry>
<varlistentry>
<term><citerefentry><refentrytitle>dtinfo</refentrytitle><manvolnum>1</manvolnum></citerefentry></term>
<listitem><para>The Information Manager: this guide, with search.
<xref linkend="dtinfo"/> is its chapter.</para></listitem>
</varlistentry>
</variablelist>
</sect1>
<sect1 id="mcde-settings">
<title>System Settings</title>
<para><command>dtsystemsettings</command> is one window for every
setting of the computer. It has four rows of icons &#x2014; personal,
hardware, internet and network, system &#x2014; and a click opens a
setting in the same window; <guilabel>Show All</guilabel> goes back.</para>
<figure id="mcde-settings-fig">
<title>System Settings</title>
<mediaobject>
<imageobject>
<imagedata fileref="@WWWIMG@/shot-settings.png" format="PNG"/>
</imageobject>
</mediaobject>
</figure>
<para>It draws the colours (every palette with its colours), the font of
every window, the backdrop (a picture, or a folder of pictures that
change by themselves) and the screen saver, the keyboard and the mouse,
sound, the network and the Wi-Fi networks in reach, Bluetooth, the date,
time and time zone, the accounts of the people who use the computer, the
software update and the facts about the computer. It also decides what
happens at login: the session and the programs that open by
themselves.</para>
<para>Changing an account, the network or the software update asks for
the administrator's password. The settings that belong to one user are
stored in <filename>~/.dt</filename>; the ones that belong to the
machine are in <filename>/etc/dt</filename> and
<filename>/usr/pkg/dt/config</filename>.</para>
</sect1>
<sect1 id="mcde-colours">
<title>Colours, fonts and the palette</title>
<para>A Makronix release is named after a CDE palette, and the desktop
starts in that palette. For 0.99.10 it is <quote>Camouflage</quote>:
the background is a grey-green, the panels are olive and grey-green, and
the title bars are a deep green. The palette is a plain file,
<filename>/usr/pkg/dt/share/palettes/Camouflage.dp</filename>, and
System Settings shows every installed palette with its colours before
you choose it.</para>
<para>Fonts are set the same way. MCDE ships Hack, an open source
monospace font, and uses it for the terminal and the login screen; the
rest of the desktop uses the system font, which System Settings can
change. Anti-aliasing is on by default and can be turned off for a
machine that is too slow for it.</para>
</sect1>
<sect1 id="mcde-session">
<title>The session and your files</title>
<para>Everything that belongs to your desktop is under
<filename>~/.dt</filename>: the session, the panel layout, the menus,
the snippets, the backdrop choice and the settings of the programs.
Removing a file there resets that part of the desktop at the next login;
removing the whole directory gives you a fresh desktop, without touching
your documents.</para>
<para>The session manager can save the programs that are open when you
log out and start them again at the next login. The setting is in
System Settings under <guilabel>Login</guilabel>. A program that should
always start belongs in the session, not in a shell startup file: the
session is what the desktop restores.</para>
</sect1>
<sect1 id="mcde-help">
<title>Help</title>
<para>The MCDE programs have a <guimenu>Help</guimenu> menu, but their
own help pages are not part of this release: the cross build turns the
MCDE documentation off. The Information Manager holds this guide, which
is the place to start when the question is about the system rather than
about one program. The next chapter explains how to open it and how to
search in it.</para>
</sect1>
</chapter>