Files
mcde/programs/dttoolbox/system.chestrc
T
lotherk a0ce4e5d47 dttoolbox T1: the chest, its chestrc parser, the dynamic Selected menu
A Motif window with the reference's five menus (Desktop, Selected, Find,
System, Help) read from share/toolchest/system.chestrc -- the grammar
subset Menu/f.menu/f.exec/f.checkexec.sh/f.separator/dynamic.  It owns
_SGI_TOOLCHEST_WINDOW, answers _SGI_TOOLCHEST_CONFIG, and polls the
desktop's _SGI__MENU_WINDOW rendezvous for _SGI_MENU_Selected, rebuilding
the Selected menu when the text changes (the property read asks for
AnyPropertyType: a CARDINAL window id is what xprop writes).

Measured: make mcde-linux exit=0; screenshot build/mcde-shots/dttoolbox.png;
with the property set by xprop the log says 'menu Selected published
(3 entries)'.
2026-11-12 11:08:58 +00:00

60 lines
1.5 KiB
Plaintext

#
# system.chestrc -- the menus of the MCDE ToolChest
#
# The grammar is the reference's (docs/MCDE-PROGRAMS.md B2): Menu NAME [dynamic]
# { entries }, "LABEL f.menu NAME", "LABEL f.exec "command"",
# "no-label f.separator". A user's ~/.chestrc replaces this file;
# ~/.auxchestrc will be added when the include path is read (T2).
#
Menu ToolChest
{
Desktop f.menu Desktop
no-label f.separator
"Selected" f.menu Selected
no-label f.separator
Find f.menu Find
no-label f.separator
System f.menu System
no-label f.separator
Help f.menu Help
}
Menu Desktop
{
"Open Home Folder" f.exec "dtfile -dir \"$HOME\""
"Open Unix Shell" f.exec "dtterm"
"System Settings" f.exec "dtsystemsettings"
no-label f.separator
"Find Files" f.exec "dtfile"
"Lock Screen" f.exec "dtscreen -lock"
no-label f.separator
"Log Out" f.exec "dtaction ExitSession"
}
Menu Selected dynamic
{
}
Menu Find
{
"File QuickFind" f.exec "dtfile"
"Info Search" f.exec "dtinfo"
}
Menu System
{
"System Settings" f.exec "dtsystemsettings"
"Disk Utility" f.exec "dtdiskutility"
"Backup" f.exec "dtbackup"
no-label f.separator
"Restart" f.exec "dtaction Restart"
"Shut Down" f.exec "dtaction Shutdown"
}
Menu Help
{
"MCDE Guide" f.exec "dtinfo"
"About MCDE" f.exec "dtsystemsettings -pane about"
}