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);