# What CK Core CDE improves

The upstream CDE project remains the portability baseline. CK Core CDE builds on it with a maintained Motif foundation, targeted desktop and application improvements, and a reproducible validation path. Choose CK Core CDE when these integrated changes matter more than staying on the upstream feature set.

## At a glance

| Area | CK Core CDE improvement | Practical result |
| --- | --- | --- |
| [Toolkit](<improvements/toolkit.html.md>) | Builds and tests CDE with the latest CK Core Motif ABI 9 as one matched native stack, with integrated support for `classic`, `modern_light`, `modern_dark`, and `high_contrast` appearance profiles across `dtsession`, `dtwm`, and `dtstyle`. | Desktop and toolkit improvements arrive together, with classic CDE and modern vector/Xft themes selectable from Style Manager or `.Xdefaults`. |
| [Window state](<improvements/window-state.html.md>) | Optional desktop icons represent open windows, distinguish active state and repaint client-supplied live icon pixmaps. | Open windows, keyboard focus and compact application state remain visible at a glance. |
| [Window management](<improvements/window-management.html.md>) | Task switching, snap feedback, open-window icons, Shift grid movement, desktop-click defocus and title-bar double-click maximize are integrated in dtwm. | Everyday window navigation gains familiar, visible interactions without replacing the CDE window manager. |
| [Wayland compositor](<improvements/wayland.html.md>) | `dtwm-wayland` (`wlroots-0.19`) frames both native Wayland `xdg-shell` clients and rootless `Xwayland` Motif clients in server-side 3D CDE bevels with snap preview, Shift-grid alignment and `Alt+Tab` task switching. | CDE runs natively as a Wayland desktop session while keeping classic X11/XLibre `dtwm` intact. |
| [Accessibility](<improvements/accessibility.html.md>) | Adds Style Manager Accessibility (`AccessX` Sticky/Slow/Bounce Keys, Visual Bell, Reduced Motion, `Super+=`/`Super+-`/`Super+0` Screen Magnification, and opt-in `XM_ACCESSIBILITY=1` Motif AT-SPI2 D-Bus auto-bridging) across Wayland and X11. | Keyboard filters, visual alerts, full-screen zoom, and `org.a11y.atspi` screen-reader trees work consistently in both CDE sessions. |
| [Terminal](<improvements/terminal.html.md>) | Filename drops insert shell-safe escaped paths, and the selected font size persists for later terminals and clones. | Dragging files into a shell and keeping a readable terminal setup both work predictably. |
| [Editor](<improvements/editor.html.md>) | Dropped files support automatic, path-list or content handling, with the choice persisted and propagated through ToolTalk. | A drop can match the editing workflow instead of having one hard-coded meaning. |
| [File Manager](<improvements/file-manager.html.md>) | Adds a shelf, image-content icons, extra-large views, storage details and optional read-only folder comparison with saved preferences. | Browse files and inspect folder differences; existing Copy/Move commands remain available. |
| [Subprocess control](<improvements/subprocess-control.html.md>) | `dtspcd` and the SPC protocol validate headers, payload limits, request types and counted strings, name authentication files unpredictably and stop if privileges cannot be dropped. | Remote command execution accepts only well-formed requests from a user who proved their identity. |
| [Data types](<improvements/data-types.html.md>) | `libDtSvc` matches file contents within what was read, follows links to their end, quotes the file names in commands of database values and reads the database files without overrunning a buffer. | Looking at a file with a strange name or contents cannot run a command or crash the program that shows it. |
| [Calendar server](<improvements/calendar-server.html.md>) | `rpc.cmsd` defaults to `AF_UNIX` (`/run/rpc.cmsd/cmsd.sock`) with `SO_PEERCRED` and zero open TCP/UDP ports, validates all requests/XDR bounds, and `dtcm` adds HTTPS CalDAV sync, SSH socket forwarding, and a live **Server \& Network Status** dialog. | Local calendars require no open network ports or `rpcbind` and resist multi-user UID spoofing, while remote sharing uses encrypted CalDAV or SSH tunnels. |
| [Login manager](<improvements/login-manager.html.md>) | `dtlogin` validates XDMCP requests, draws authorization cookies only from `/dev/urandom`, checks the PAM account as well as the password, runs `xrdb` without a shell and stops on a failed privilege drop. | The root login service accepts only well-formed network requests and keeps its privileges apart from the session's. |
| [ToolTalk](<improvements/tooltalk.html.md>) | `ttsession` decodes requests within their bounds, applies its authentication level to every request, draws the session cookie from `/dev/urandom` and limits the variables a message can set for a program it starts; `rpc.ttdbserverd` checks the descriptors, records and paths of its requests. | A session server that listens on the network cannot be crashed by a malformed request, and a message cannot choose what the programs it starts run. |
| [DtSearch](<improvements/dtsearch.html.md>) | Databases store addresses and timestamps in 8 bytes whatever the build's feature macros, the maintenance tools no longer crash at start, and a test indexes a corpus and queries it through the DtSrAPI. | A database means the same to the tools, the library and its C++ users, and a database of another layout is refused instead of misread. |
| [Session manager](<improvements/session-manager.html.md>) | `dtsession` gives up its installed identity before it reads the environment and stops when that fails. | A session manager installed setuid root cannot be left running as root by a refused system call. |
| [Session manager](<improvements/session-manager.html.md>) | `dtsession` gives up its installed identity before it reads the environment and stops when that fails, checks passwords without trusting `crypt()`, handles session directories without a shell, reads saved sessions and palettes within their buffers and keeps XSMP clients from crashing it. | A session manager installed setuid root cannot be left running as root, and a damaged session file, a restored client or a stray `SIGTERM` no longer takes the session down. |
| [Session manager](<improvements/session-manager.html.md>) | `dtsession` gives up its installed identity before it reads the environment and stops when that fails, checks passwords without trusting `crypt()`, handles signals, session directories and saves safely, starts clients without leaking their environment, reads saved sessions and palettes within their buffers and keeps XSMP clients from crashing it. | A session manager installed setuid root cannot be left running as root, and a damaged session file, a restored client, a failed save or a stray `SIGTERM` no longer takes the session down. |
| [Session manager](<improvements/session-manager.html.md>) | `dtsession` gives up its installed identity before it reads the environment and stops when that fails, unlocks the screen only with the starting user's password, checked through PAM, handles signals, session directories and saves safely, starts clients without leaking their environment, reads saved sessions and palettes within their buffers and keeps XSMP clients from crashing it. | A session manager installed setuid root cannot be left running as root, and a damaged session file, a restored client, a failed save or a stray `SIGTERM` no longer takes the session down. |
| [Session manager](<improvements/session-manager.html.md>) | `dtsession` gives up its installed identity before it reads the environment and stops when that fails, unlocks the screen only with the starting user's password, checked through PAM, handles signals, session directories and saves safely, starts clients without leaking their environment, reads saved sessions and palettes within their buffers and keeps XSMP clients from crashing it. | A session manager that was installed setuid or setgid anyway does not keep that identity, and a damaged session file, a restored client, a failed save or a stray `SIGTERM` no longer takes the session down. |
| [Session manager](<improvements/session-manager.html.md>) | `dtsession` gives up its installed identity before it reads the environment and stops when that fails, locks the screen only when it can unlock it again, unlocks it only with the starting user's password, checked through PAM, handles signals, session directories and saves safely, starts clients without leaking their environment, reads saved sessions and palettes within their buffers and keeps XSMP clients from crashing it. | A session manager that was installed setuid or setgid anyway does not keep that identity, and a damaged session file, a restored client, a failed save or a stray `SIGTERM` no longer takes the session down. |
| [Mailer](<improvements/mail.html.md>) | `dtmail` and `dtmailpr` run with no group of their own: the user's mailbox, its lock files and the file that replaces it in a save are made by `dtmailspool`, a small set-group-id helper that works for its own user only, takes no path, holds the mail group for one operation at a time and checks every byte of its protocol; a mailbox save creates its temporary file exclusively, mailbox paths are expanded without a shell and within their buffers, and the text a reply, a print or a text export makes from a message fits no fixed buffer. | A defect in the graphical mailer, its ToolTalk handlers or its parsers no longer comes with write access to every user's mailbox, and a mailbox name cannot make it replace another file. |
| [Printing](<improvements/printing.html.md>) | Backs `libDtPrint` (`DtPrintSetupBox`) and `dthelpprint` with Unicode-clean Cairo/Pango vector PDF generation, built-in `Print to PDF`, CUPS / IPP Everywhere queue discovery, a Motif **Page \& IPP Job Setup** dialog (paper size, duplex, page range, copies), and direct `libcups` / RFC 8011 IPP/1.1 job submission across `dtpad`, `dtmail`, `dtcm`, and `dthelpview`. | Core CDE applications print searchable multi-script PDFs to files or driverless IPP Everywhere queues without the retired X11 `Xprint` server or legacy PostScript `lp` wrappers. |
| [Launching](<improvements/launching.html.md>) | Distinguishes direct GUI launch from the interactive `Run...` dialog and lets that dialog choose whether to use a Terminal. | Starting a graphical application no longer requires an unnecessary terminal wrapper. |
| [Trash](<improvements/trash.html.md>) | Improves trash state and full-icon handling and can raise and focus the Trash window. | The desktop communicates trash state and returns to the relevant window more reliably. |
| [Validation](<improvements/validation.html.md>) | ARM64 CI builds the current Motif dependency, compiles CDE, runs `make check`, verifies the ABI link and launches the desktop smoke test. | A successful result covers the native stack and a real CDE session, not just compilation. |

## A cohesive native stack

CDE subclasses Motif widgets and relies on private widget records. CK Core CDE therefore treats the desktop and CK Core Motif as one versioned native cohort, rather than accepting whichever system `libXm` happens to be installed. The [build guide](<build.html.md>) explains the isolated prefix and the checks that enforce this boundary.

## Desktop changes you can see

Open-window icons are a CK Core CDE desktop extension. They keep running applications represented on the desktop and distinguish the focused window while retaining the classic CDE icon model.

The separate [CK Core Apps](<https://cklukas.github.io/ck-core-apps/>) companion suite demonstrates the same desktop contract with high-resolution live icons for time, system load, pointer tracking, browser favicons, market data and an animated plasma demo.

dtwm also carries a task switcher with keyboard focus handling, window snap feedback, workspace-aware open-window icons, Shift-modified grid movement and resize, desktop-click focus clearing, and title-bar double-click maximize/restore. These changes extend CDE's own window-management model rather than introducing a second desktop shell.

The [desktop gallery](<desktop.html.md>) shows the actual default session, Terminal, Style Manager and File Manager from the uConsole smoke run.

## Improvements in everyday applications
- **Terminal:** safely escaped filename drops and persistent font-size choices.
- **Editor:** selectable dropped-file behavior with persisted configuration.
- **File Manager:** a shelf, image-content icons, extra-large views, storage information, IconicPath interaction, improved Trash handling and support for filenames containing quotes or backslashes; optional [read-only folder comparison](<improvements/folder-comparison.html.md>) adds filters, matching-rule review and saved preferences.
- **Run actions:** direct graphical launch alongside the configurable Terminal-backed `Run...` workflow.

These are small interactions individually, but they are the parts of a desktop that users touch repeatedly.

## Evidence, not screenshots alone

The ARM64 smoke workflow records the executable and Motif build behind each capture, while CI independently runs the complete automated suite. See [CI and validation](<ci.html.md>) for the current contract.
