Konrad, 2026-11-14: "was soll dtksh ueberhaupt sein... einfach ne shell von
CDE? fuck it. schmeiss das komplett raus aus MCDE." dtksh is CDE's ksh93
with Motif bindings for scripting dialogs; its bundled ksh93 (AT&T ast's
bin/package) compiles and RUNS test programs while it builds, which a cross
build for NetBSD on a Linux host cannot do -- the reason wm/mcde did not
build for days ("cc: not found", userland-2026-11-14g.log).
- programs/dtksh removed (1204 files); not in programs/Makefile.am,
configure.ac, the recipe (REPLACE_INTERPRETER dtksh, KSH_CC), PLIST (bin,
lib, man page, six catalogues), msg.C.am (dtksh.cat), AGENTS.md.
- What used dtksh:
* dterror.src, dtfile_error.cpp, types/error.ds.src: an error dialog with a
message. New programs/dterror/dterror.c (about 70 lines of Motif), built
as dterror.ds: dterror.ds MESSAGE [TITLE [OK-LABEL]], the convention of
every caller (the data types, dtopen, dtfile ModAttr.c). dtfile_error
was only the 'test' entry of dtfile.config and ModAttr.c's fallback; the
entry is gone and ModAttr.c calls dterror.ds.
* dthelpgen.dtsh: the "building help" dialog helpgen.c forked; it runs
silently now (childPid stays -1).
* dtprintegrate/dtlp.src: the print dialog (1711 lines of dtksh); printing
is to come back through CUPS (tasksd t0177, t0193). dtlp's man page is
out of the doc build and PLIST with it.
* The data types DTKSH_SCRIPT (*.ds) and DTKSH_CONV (*.dtsh) in dt.dt.src:
they would have classed dterror.ds as a script.
- dtterm needs no change: lib/DtTerm/TermPrim/TermPrimSubproc.c takes /usr/bin/zsh,
then the shell of the passwd entry, then /bin/sh, and never started dtksh.
- ksh93 stays as the NetBSD binary for the scripts that say ksh (Xsession).
Measured: make mcde-linux exit=0 (build/logs/mcde-linux-nodtksh-2026-11-14.log),
autogen picked up programs/dterror; dterror.ds under Xvfb shows the error
icon, a two-line message and one button "Understood", and exits 0 on Return.
Not in this commit: the other agents' pending dtfile edits (Search.c,
Navigation.c) and the regenerated distinfo files.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
79 lines
3.7 KiB
C++
79 lines
3.7 KiB
C++
XCOMM $XConsortium: dtfile.config.cpp /main/4 1996/10/08 11:57:49 mustafa $
|
|
XCOMM #########################################################################
|
|
XCOMM -----------------------------------------------------------------------
|
|
XCOMM dtfile.config
|
|
XCOMM -------------
|
|
XCOMM
|
|
XCOMM (c) Copyright 1996 Digital Equipment Corporation.
|
|
XCOMM (c) Copyright 1993,1994,1996 Hewlett-Packard Company.
|
|
XCOMM (c) Copyright 1993,1994,1996 International Business Machines Corp.
|
|
XCOMM (c) Copyright 1993,1994,1996 Sun Microsystems, Inc.
|
|
XCOMM (c) Copyright 1996 Novell, Inc.
|
|
XCOMM (c) Copyright 1996 FUJITSU LIMITED.
|
|
XCOMM (c) Copyright 1996 Hitachi.
|
|
XCOMM (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary of
|
|
XCOMM Novell, Inc.
|
|
XCOMM
|
|
XCOMM Configuration file for the dt File Manager.
|
|
XCOMM
|
|
XCOMM This file enables dialogs which can be used to edit
|
|
XCOMM file-system specific parameters, for example Access
|
|
XCOMM Control Lists for Andrew File System directories.
|
|
XCOMM Additional information is in the man page dtfile_config.
|
|
XCOMM
|
|
XCOMM The file consists of two sections. The first section
|
|
XCOMM maps platform-specific information to a platform-independent
|
|
XCOMM identifier. There are two fields in the platform-specific
|
|
XCOMM portion separated by a colon. The first field identifies
|
|
XCOMM the platform: aix, hpux, sunos. The second field depends
|
|
XCOMM on platform; for aix it is an integer corresponding to the
|
|
XCOMM st_vfstype field returned by stat, for hpux it is an integer
|
|
XCOMM corresponding to the f_fsid[1] field returned by statfs, for
|
|
XCOMM sunos it is a string corresponding to the f_basetype field
|
|
XCOMM returned by statvfs. The platform-independent identifier
|
|
XCOMM is given following an equals sign. The keyword "end" delimits
|
|
XCOMM the list of mappings. For example, to define the "native"
|
|
XCOMM file systems on several platforms:
|
|
XCOMM
|
|
XCOMM aix:3 = native
|
|
XCOMM hpux:0 = native
|
|
XCOMM sunos:ufs = native
|
|
XCOMM decunix:ufs = native
|
|
XCOMM end
|
|
XCOMM
|
|
XCOMM The second section of the configuration file provides
|
|
XCOMM information needed by File Manager to execute the
|
|
XCOMM filesystem-specific dialog. It consists of a list of
|
|
XCOMM platform-independent identifiers followed by a colon and
|
|
XCOMM two or three fields. Each field consists of a name followed
|
|
XCOMM by an equals sign and a string. The three field names are:
|
|
XCOMM buttonLabel, which defines a label for a button in the permissions
|
|
XCOMM dialog; fsDialog, which defines the path to the program
|
|
XCOMM which displays the dialog for editing file-specific properties;
|
|
XCOMM and warning, which is optional and defines a warning message to
|
|
XCOMM be displayed in permissions dialog. "\n" can be included in the
|
|
XCOMM warning text to generate a new line. Continuing the native file
|
|
XCOMM system example used above, the following would enable a file-system
|
|
XCOMM specific dialog generated by the program /local/bin/modExtAttr:
|
|
XCOMM
|
|
XCOMM native: buttonLabel = Modify extended attributes ...
|
|
XCOMM warning = Warning:\nExtended attributes may limit your access
|
|
XCOMM fsDialog = /local/bin/modExtAttr
|
|
XCOMM
|
|
XCOMM Since the button label and warning are visible to users, they must be
|
|
XCOMM localized. This is done using the tagged message file
|
|
XCOMM format.
|
|
XCOMM
|
|
XCOMM -----------------------------------------------------------------------
|
|
XCOMM
|
|
|
|
XCOMM aix:3 = test
|
|
XCOMM hpux:0 = test
|
|
XCOMM sunos:ufs = test
|
|
XCOMM decunix:ufs = test
|
|
end
|
|
|
|
afs: buttonLabel = %|nls-1-#Change AFS ACL ...#|
|
|
warning = %|nls-3-#Warning: This is an Andrew File System (AFS) object.\nAccess permissions may be further restricted by the AFS Access Control List (ACL).#|
|
|
fsDialog = CDE_INSTALLATION_TOP/bin/dtaclafs
|