IT lexicon › Infra & Ops › dtaction

dtaction

Infra & Ops På svenska → Updated: 2026-10-09

CDE's action database and the command that runs an action by name — the layer that made a double-click, a panel button and a shell script all launch the same thing the same way.

In CDE an action is an entry in a .dt file: ACTION Vi { LABEL Vi; TYPE COMMAND; EXEC_STRING vi %Arg_1%; WINDOW_TYPE TERMINAL; }. The type can be a command, a MAP that forwards to another action, or TT_MSG, a ToolTalk message to a program already running. Datatypes in the same files tie a filename pattern or file contents to an icon and a list of actions, so *.ps gets Open and Print. The database is assembled from ~/.dt/types, /etc/dt and /usr/dt/appconfig/types, personal entries winning, and everything that shows an icon — dtfile, the Front Panel, the Application Manager — reads the same database.

The command dtaction Name file runs an action from a shell or script, with -user to do it as someone else after a password prompt. The dtcreate tool was a dialog for building actions and datatypes without writing the syntax by hand, and dtappintegrate linked a newly installed program's files into the right places. The model is in substance the one that .desktop files and the MIME database later standardised under freedesktop.org, except that CDE had it half a decade earlier and with fewer people paying attention.

← Back to the lexicon