Left of the workspace switch: Files (Home, Desktop, Documents, Downloads), Mail (Text Editor, Calendar, Calculator, Icon Editor), Terminal (Disk Utility, System Settings), Network (Remote Login, Sharing) and Desktop Style with CDE's printers, applications and help in its drawer; right of it only the running programs and the trash. dtwm moves the panel so that the switch stays in the middle of the screen, also when programs come and go. A program in a drawer is in the dock and not shown again on the right. dtfile shows the network for the folder ~/Network, which the panel opens; the home folders are made at login. Icons for the disk and the network; dtremotelogin asks for user@computer and runs ssh. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
33 lines
1.8 KiB
Plaintext
33 lines
1.8 KiB
Plaintext
Front panel definition (dtwm.fp) and actions -- what MCDE's panel relies on
|
|
Read 2026-11-11 for the panel layout of ext/src/mcde/programs/types/dtwm.fp.src.
|
|
|
|
Source: ext/src/mcde/doc/en_US.UTF-8/guides/man/man4/dtfpfile.sgm (CDE 2.5.3,
|
|
dtfpfile(4)), the lines quoted:
|
|
|
|
:406 CONTROL TYPE (blank/busy/client/clock/date/file/icon), default icon
|
|
:616 "For the control type of file, FILE_NAME is the pathname of the file
|
|
to be used for the control. The file's file type, actions and
|
|
images are extracted from the action database for the control."
|
|
:674 LABEL "Used with control types of: icon, file, clock and busy ...
|
|
specifies the string to be displayed when a control is in a
|
|
subpanel."
|
|
:821 file -- "References a file on the file system and uses that file's
|
|
actions and image"
|
|
|
|
Measured (Xvfb, dtsession, build/mcde-root):
|
|
- A file control in a drawer is labelled with the file's name, not with
|
|
LABEL: FILE_NAME $HOME showed the user's login name. Home is therefore
|
|
an icon control (PUSH_ACTION DtfileHome).
|
|
- FILE_NAME $HOME/Desktop etc.: the folder icon, a click opens the folder.
|
|
|
|
Actions (types/*.dt.src, built through cpp -P -C, then the action service):
|
|
- cpp does not replace a macro inside '...' (a character literal to cpp):
|
|
sh -c 'exec CDE_INSTALLATION_TOP/bin/dtfile ...' reached dtexec as
|
|
"exec: CDE_INSTALLATION_TOP/bin/dtfile: not found" (~/.dt/errorlog).
|
|
- The action service puts in $NAME in EXEC_STRING itself; an unknown name
|
|
becomes empty: sh -c '... exec "$0" ...' gave "exec: : Permission
|
|
denied". So an EXEC_STRING carries no shell variables; anything that
|
|
needs them is a script in dt/bin (dtremotelogin).
|
|
- $HOME in EXEC_STRING is put in (McdeNetwork: dtfile -dir $HOME/Network
|
|
opened /home/.../Network).
|