Files
lotherkandClaude Sonnet 5.5 cc770d000e dtfile: a mount no longer freezes the window; Connecting dialog, Cancel, Dtfile*connectTimeout (t0080 item 4)
mcde_sys_net_mount ran in the Xt callback and waited for sshfs/mount_afp
without a limit: a server that is gone froze the window for as long as the
tool lived (measured: the call returns after 20.0 s with a tool that sleeps
20 s; with one that never ends, never).

McdeSys: mcde_sys_net_mount_start/_job_fd/_job_finish/_job_cancel.  The tool
runs under a runner process (its own process group) that writes the answer
to a pipe: dtfile sets SIGCHLD to SIG_IGN (Main.c), where waitpid gives no
status.  mcde_sys_net_mount and _start share one plan (MountPlanFor).
test_job (make check, 5 of 5 pass) covers success, failure, a missing tool,
a password on stdin, and cancel with the tool AND what it started gone, with
SIGCHLD default and ignored; without the group kill it fails (mutant run).

dtfile: _McdeNetMount (NetView.c) for all three mounts (network view,
Connect to Server, column view): a modal "Connecting ..." dialog with Cancel
(also close button and Escape), the descriptor as Xt input (no timer
polling), one time-out, Dtfile*connectTimeout, 20 s, 3..600 (app-defaults,
man page).

Measured (real dtfile on Xvfb, fake sshfs that sleeps 40 s, connectTimeout
4): the dialog shows and repaints when moved; the time-out gives "Could not
connect: The server did not answer within 4 seconds.", Escape gives
"Could not connect: Cancelled."; sleep processes while connecting 1, after
the time-out 0, after Escape 0; no dialog left.  One first run showed a 40 s
stall of the whole session after Return (import blocked too); not
reproduced in three further runs, cause unknown.  Cross compile for NetBSD
(x86_64--netbsd-gcc, the build's flags): netmount.c and NetView.c without a
warning; common.c's old settimeofday declaration warning is not new.  Not
done: the NFS and AFP tools (only sshfs was faked), the afp://10.255.255.1/
case of the task with a real mount_afp.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-11-15 00:28:27 +00:00

180 lines
7.6 KiB
Plaintext

!######################################################################
!#
!# Dtfile
!#
!# Common Desktop Environment (CDE)
!#
!# Application Defaults for the CDE DT File Manager
!#
!# (c) Copyright 1993, 1994 Hewlett-Packard Company
!# (c) Copyright 1993, 1994 International Business Machines Corp.
!# (c) Copyright 1993, 1994 Sun Microsystems, Inc.
!# (c) Copyright 1993, 1994 Unix System Labs, Inc., a subsidiary
!# of Novell, Inc.
!#
!######################################################################
#include "Dt"
Dtfile*DtIcon*pixmapForeground: black
Dtfile*DtIcon*behavior: icon_drag
Dtfile*DtIcon*highlightThickness: 1
Dtfile*icon*marginWidth: 0
Dtfile*icon*marginHeight: 0
Dtfile*searchPath: DT/Dtfile
Dtfile*promptUser: True
Dtfile*moveThreshold: 10
Dtfile*connectTimeout: 20
Dtfile*showEmptySet: True
Dtfile*filter_files*file_name_text.columns: %|nls-13-#30#|
Dtfile*rootTitle: %|nls-23-#ROOT#|
!######
!# These resources set the accelerators used in the File Manager
!# along with the accelerator Text. MCDE: the Command key (Mod4) and the
!# names Finder uses (docs/reference/shortcuts.txt in the Makronix tree).
Dtfile*fileMenu.find.acceleratorText: %|nls-1-#Cmd+F#|
Dtfile*fileMenu.find.accelerator: %|nls-2-#Mod4<Key>f#|
Dtfile*.close.acceleratorText: %|nls-3-#Cmd+W#|
Dtfile*.close.accelerator: %|nls-4-#Mod4<Key>w#|
Dtfile*fileMenu.goHome.acceleratorText: %|nls-5-#Shift+Cmd+H#|
Dtfile*fileMenu.goHome.accelerator: %|nls-6-#Shift Mod4<Key>h#|
Dtfile*fileMenu.goUp.acceleratorText: %|nls-7-#Cmd+Up#|
Dtfile*fileMenu.goUp.accelerator: %|nls-8-#Mod4<Key>Up#|
Dtfile*fileMenu.openTerminal.acceleratorText: %|nls-9-#Cmd+T#|
Dtfile*fileMenu.openTerminal.accelerator: %|nls-10-#Mod4<Key>t#|
Dtfile*viewMenu.showHiddenObjects.acceleratorText: %|nls-11-#Cmd+S#|
Dtfile*viewMenu.showHiddenObjects.accelerator: %|nls-12-#Mod4<Key>s#|
Dtfile*actionMenu.copy.acceleratorText: %|nls-15-#Cmd+C#|
Dtfile*actionMenu.copy.accelerator: %|nls-16-#Mod4<Key>c#|
Dtfile*fileMenu.getInfo.acceleratorText: Cmd+I
! the Go menu shows the keys the work area translates (translations_da),
! so the entries carry no accelerator of their own
Dtfile*goMenu.goBack.acceleratorText: Cmd+[
Dtfile*goMenu.goForward.acceleratorText: Cmd+]
Dtfile*goMenu.goEnclosing.acceleratorText: Cmd+Up
Dtfile*goMenu.goComputer.acceleratorText: Shift+Cmd+C
Dtfile*goMenu.goHomeKey.acceleratorText: Shift+Cmd+H
Dtfile*goMenu.goDesktop.acceleratorText: Shift+Cmd+D
Dtfile*goMenu.goNetwork.acceleratorText: Shift+Cmd+K
Dtfile*goMenu.goApplications.acceleratorText: Shift+Cmd+A
Dtfile*goMenu.goToFolder.acceleratorText: Shift+Cmd+G
Dtfile*goMenu.goConnect.acceleratorText: Cmd+K
Dtfile*fileMenu.getInfo.accelerator: Mod4<Key>i
Dtfile*selectAll.acceleratorText: %|nls-19-#Ctrl+/#|
Dtfile*selectAll.accelerator: %|nls-20-#Ctrl<Key>slash#|
Dtfile*deselectAll.acceleratorText: %|nls-21-#Ctrl+\\#|
Dtfile*deselectAll.accelerator: %|nls-22-#Ctrl<Key>backslash#|
Dtfile*fileMenu.newFolder.acceleratorText: %|nls-24-#Shift+Cmd+N#|
Dtfile*fileMenu.newFolder.accelerator: %|nls-25-#Shift Mod4<Key>n#|
Dtfile*viewMenu.new.acceleratorText: %|nls-26-#Cmd+N#|
Dtfile*viewMenu.new.accelerator: %|nls-27-#Mod4<Key>n#|
Dtfile*fileMenu.changeTo.acceleratorText: %|nls-28-#Shift+Cmd+G#|
Dtfile*fileMenu.changeTo.accelerator: %|nls-29-#Shift Mod4<Key>g#|
Dtfile*actionMenu.putInTrash.acceleratorText: %|nls-30-#Cmd+Delete#|
Dtfile*actionMenu.putInTrash.accelerator: %|nls-31-#Mod4<Key>Delete#|
Dtfile*viewMenu.setViewOptions.acceleratorText: %|nls-32-#Cmd+J#|
Dtfile*viewMenu.setViewOptions.accelerator: %|nls-33-#Mod4<Key>j#|
!######
!# Here are some additional accelerators we decided not to set by
!# default, but a user could if they so choose
!#
!# In the File pulldown:
!# New File...
!# Dtfile*fileMenu.newFile.acceleratorText:
!# Dtfile*fileMenu.newFile.accelerator:
!# Show Trash...
Dtfile*fileMenu.emptyTrash.acceleratorText: Cmd+Shift+Delete
!# Dtfile*fileMenu.openTrash.acceleratorText:
!# Dtfile*fileMenu.openTrash.accelerator:
!#
!# In the Selected pulldown:
!# Rename
!# Dtfile*actionMenu.rename.acceleratorText:
!# Dtfile*actionMenu.rename.accelerator:
!# Put On Desktop
!# Dtfile*actionMenu.putInWorkspace.acceleratorText:
!# Dtfile*actionMenu.putInWorkspace.accelerator:
!#
!# In the View pulldown:
!# Clean Up
!# Dtfile*viewMenu.cleanUp.acceleratorText:
!# Dtfile*viewMenu.cleanUp.accelerator:
!# Modify Filter List...
!# Dtfile*viewMenu.setFilterOptions.acceleratorText:
!# Dtfile*viewMenu.setFilterOptions.accelerator:
!# Save Settings...
!# Dtfile*viewMenu.saveViewOptions.acceleratorText:
!# Dtfile*viewMenu.saveViewOptions.accelerator:
!# Reread
!# Dtfile*viewMenu.refresh.acceleratorText:
!# Dtfile*viewMenu.refresh.accelerator:
!#
!# In the Help pulldown:
!# Introduction...
!# Dtfile*helpMenu.introduction.acceleratorText:
!# Dtfile*helpMenu.introduction.accelerator:
!# Tasks...
!# Dtfile*helpMenu.tasks.acceleratorText:
!# Dtfile*helpMenu.tasks.accelerator:
!# Reference...
!# Dtfile*helpMenu.reference.acceleratorText:
!# Dtfile*helpMenu.reference.accelerator:
!# On Item
!# Dtfile*helpMenu.onItem.acceleratorText:
!# Dtfile*helpMenu.onItem.accelerator:
!# Using Help...
!# Dtfile*helpMenu.usingHelp.acceleratorText:
!# Dtfile*helpMenu.usingHelp.accelerator:
!# Version...
!# Dtfile*helpMenu.version.acceleratorText:
!# Dtfile*helpMenu.version.accelerator:
!#
!# For the trash pulldowns
!# In the File pulldown:
!# Select All
!# Dtfile*fileMenuTrash.selectAll.acceleratorText:
!# Dtfile*fileMenuTrash.selectAll.accelerator:
!# Unselect All
!# Dtfile*fileMenuTrash.deselectAll.acceleratorText:
!# Dtfile*fileMenuTrash.deselectAll.accelerator:
!# Restore
!# Dtfile*fileMenuTrash.putBack.acceleratorText:
!# Dtfile*fileMenuTrash.putBack.accelerator:
!# Remove
!# Dtfile*fileMenuTrash.shred.acceleratorText:
!# Dtfile*fileMenuTrash.shred.accelerator:
!# In the Help pulldown:
!# Introduction...
!# Dtfile*helpMenuTrash.introduction.acceleratorText:
!# Dtfile*helpMenuTrash.introduction.accelerator:
!# Tasks...
!# Dtfile*helpMenuTrash.tasks.acceleratorText:
!# Dtfile*helpMenuTrash.tasks.accelerator:
!# Reference...
!# Dtfile*helpMenuTrash.reference.acceleratorText:
!# Dtfile*helpMenuTrash.reference.accelerator:
!# On Item
!# Dtfile*helpMenuTrash.onItem.acceleratorText:
!# Dtfile*helpMenuTrash.onItem.accelerator:
!# Using Help...
!# Dtfile*helpMenuTrash.usingHelp.acceleratorText:
!# Dtfile*helpMenuTrash.usingHelp.accelerator:
!# Version...
!# Dtfile*helpMenuTrash.version.acceleratorText:
!# Dtfile*helpMenuTrash.version.accelerator:
!# The display area size for the icon images in File Manager
!# Icon images larger than this size will be clipped to this size
!# Dtfile*smallIconWidth: 24
!# Dtfile*smallIconHeight: 24
!# Dtfile*largeIconWidth: 38
!# Dtfile*largeIconHeight: 38
!# To empty trash upon exiting the desktop. Set this resource to True
!# Dtfile*emptyTrashOnExit: False
%|nls-14-#optional_localization#|