From 12ddff09ec74b7b40bad864c20bf0796d44c2672 Mon Sep 17 00:00:00 2001 From: lotherk Date: Sat, 14 Nov 2026 06:32:37 +0000 Subject: [PATCH] MCDE: the Utilities folder holds the system's tools (t0105) dtappscan sorted every X tool and every shell tool into "Utilities" beside the desktop's own programs, so the folder said nothing about the machine. It is now arranged as the reference's Utilities is: Utilities the system's tools MCDE has: Dtterm, McdeDiskUtility Utilities/X11 CDE's X tools (xterm, xclock, xload, xwd, xwud, xdpyinfo, xlsfonts, xfd, xprop, xwininfo, xclipboard, bitmap) Utilities/Command Line tar, compress, du, df, grep, diff, wc, file, vi, sh, the dtaction helpers System the settings (dtsystemsettings, dtstyle, dtprintinfo) and the file manager's window MakeDirs already makes the nested folders. dtappscan -v now names each built-in entry too (folder, action), so the arrangement can be read from the log. docs/MCDE-PROGRAMS.md has the role table: each of the reference's 25 tools with the MCDE program that takes the role and its state (present, planned as a task, decided against -- no colour management, no ODBC, no Java, no RAID tool yet). Measured: "dtappscan -v" lists "Utilities Dtterm", "Utilities McdeDiskUtility", "Utilities/X11 Xterm", ..., "Utilities/Command Line Tar"; ~/.dt/Applications/Utilities holds Dtterm, McdeDiskUtility, X11, Command Line (docs/screenshots/leopard/Applications-Utilities-mcde.png, a dtfile window in that folder). --- programs/dtappscan/dtappscan.c | 77 +++++++++++++++++++--------------- 1 file changed, 44 insertions(+), 33 deletions(-) diff --git a/programs/dtappscan/dtappscan.c b/programs/dtappscan/dtappscan.c index 49a950af..11f5fc6b 100644 --- a/programs/dtappscan/dtappscan.c +++ b/programs/dtappscan/dtappscan.c @@ -80,7 +80,10 @@ static const struct { #define OTHER "Other" /* the desktop's own programs: action (types/*.dt), folder, the program that - * must be there */ + * must be there. MCDE: "System" is for settings, "Utilities" for the + * system's tools (the reference's Utilities folder: Terminal, Disk Utility, + * ...); the X tools sit in Utilities/X11 and the command-line tools in + * Utilities/Command Line, so that the tools MCDE has are what one sees. */ static const struct { const char *action, *folder, *program; } builtin[] = { @@ -93,9 +96,8 @@ static const struct { { "Dticon", "Graphics", "dticon" }, { "Dtappbuild", "Development", "dtbuilder" }, { "Dtcreate", "Development", "dtcreate" }, + /* the settings, and the desktop's own window */ { "Dtfile", "System", "dtfile" }, - { "Dtterm", "System", "dtterm" }, - { "McdeDiskUtility", "System", "dtdiskutility" }, { "McdeSystemSettings", "System", "dtsystemsettings" }, { "McdeSharing", "System", "dtsystemsettings" }, { "Dtstyle", "System", "dtstyle" }, @@ -104,36 +106,41 @@ static const struct { { "Dtmanpageview", "Help", "dthelpview" }, { "OpenDtIntro", "Help", "dthelpview" }, { "DtLoadInfoLib", "Help", "dtinfo" }, - /* CDE's desktop tools (appmanager/C/Desktop_Tools) */ - { "Xterm", "Utilities", "xterm" }, - { "XclockDig", "Utilities", "xclock" }, - { "Xload", "Utilities", "xload" }, - { "Xwd", "Utilities", "xwd" }, - { "Xwud", "Utilities", "xwud" }, - { "Xdpyinfo", "Utilities", "xdpyinfo" }, - { "Xlsfonts", "Utilities", "xlsfonts" }, - { "Xfd", "Utilities", "xfd" }, - { "Xprop", "Utilities", "xprop" }, - { "Xwininfo", "Utilities", "xwininfo" }, - { "Xclipboard", "Utilities", "xclipboard" }, - { "Bitmap", "Utilities", "bitmap" }, - { "Compress", "Utilities", "compress" }, - { "Uncompress", "Utilities", "uncompress" }, - { "Tar", "Utilities", "tar" }, - { "TarList", "Utilities", "tar" }, - { "TarUnpack", "Utilities", "tar" }, - { "Df", "Utilities", "df" }, - { "DuSort", "Utilities", "du" }, - { "Grep", "Utilities", "grep" }, - { "Diff", "Utilities", "diff" }, - { "Wc", "Utilities", "wc" }, - { "File", "Utilities", "file" }, - { "Vi", "Utilities", "vi" }, - { "ExecuteCmd", "Utilities", "sh" }, - { "ReloadActions", "Utilities", "dtaction" }, - { "ReloadResources", "Utilities", "dtaction" }, - { "RestorePanel", "Utilities", "dtaction" }, - { "Dttypes", "Utilities", "dttypes" }, + /* the system's tools MCDE has: Terminal and Disk Utility, as the + * reference's Utilities folder has them */ + { "Dtterm", "Utilities", "dtterm" }, + { "McdeDiskUtility", "Utilities", "dtdiskutility" }, + /* CDE's X tools (appmanager/C/Desktop_Tools) one level below */ + { "Xterm", "Utilities/X11", "xterm" }, + { "XclockDig", "Utilities/X11", "xclock" }, + { "Xload", "Utilities/X11", "xload" }, + { "Xwd", "Utilities/X11", "xwd" }, + { "Xwud", "Utilities/X11", "xwud" }, + { "Xdpyinfo", "Utilities/X11", "xdpyinfo" }, + { "Xlsfonts", "Utilities/X11", "xlsfonts" }, + { "Xfd", "Utilities/X11", "xfd" }, + { "Xprop", "Utilities/X11", "xprop" }, + { "Xwininfo", "Utilities/X11", "xwininfo" }, + { "Xclipboard", "Utilities/X11", "xclipboard" }, + { "Bitmap", "Utilities/X11", "bitmap" }, + /* and the command-line tools in a folder of their own */ + { "Compress", "Utilities/Command Line", "compress" }, + { "Uncompress", "Utilities/Command Line", "uncompress" }, + { "Tar", "Utilities/Command Line", "tar" }, + { "TarList", "Utilities/Command Line", "tar" }, + { "TarUnpack", "Utilities/Command Line", "tar" }, + { "Df", "Utilities/Command Line", "df" }, + { "DuSort", "Utilities/Command Line", "du" }, + { "Grep", "Utilities/Command Line", "grep" }, + { "Diff", "Utilities/Command Line", "diff" }, + { "Wc", "Utilities/Command Line", "wc" }, + { "File", "Utilities/Command Line", "file" }, + { "Vi", "Utilities/Command Line", "vi" }, + { "ExecuteCmd", "Utilities/Command Line", "sh" }, + { "ReloadActions", "Utilities/Command Line", "dtaction" }, + { "ReloadResources", "Utilities/Command Line", "dtaction" }, + { "RestorePanel", "Utilities/Command Line", "dtaction" }, + { "Dttypes", "Utilities/Command Line", "dttypes" }, }; #define NBUILTIN (sizeof builtin / sizeof builtin[0]) @@ -843,6 +850,10 @@ main(int argc, char **argv) for (i = 0; i < napps; i++) (void) ActionFile(apps[i].folder, apps[i].action); if (verbose) { + for (b = 0; b < NBUILTIN; b++) + if (OnPath(builtin[b].program)) + fprintf(stderr, "dtappscan: %-24s %s (built in)\n", + builtin[b].folder, builtin[b].action); for (i = 0; i < napps; i++) fprintf(stderr, "dtappscan: %-14s %s (%s)\n", apps[i].folder, apps[i].name, apps[i].id);