The network view's warning names Eject; now dtfile has it. The Selected
menu carries "Eject" (mnemonic E) after "Put in Trash", and Command+E is
bound in the drawing area's translation block (Mod4<Key>e:McdeKey(@,eject)).
Both call McdeEjectSelection(): it takes the selected folders, asks
mcde_sys_disks for the mounted volume whose mountpoint is one of them, and
unmounts it through mcde_sys_disk_unmount -- never a shell, and McdeSys
refuses what the computer runs from. No selection or no mounted volume gets
a sentence instead; a refused unmount shows mcde_sys_error() (as a user,
udisksctl asks polkit and fails without an agent -- measured).
The menu table is a fixed XtCalloc(menuItemCount): the new item made it 69
entries, so menuItemCount goes from 68 to 69 (51 to 52 without the Trash
menu). Without that, opening the Selected menu crashed the window (the
overflow was found by the menu click, not by the build).
Catalog: set 20 messages 173 "Eject", 174 "E", 175/176 the two answers, in
dtfile.msg and the German copy. The desktop's warning now says "Eject in
the file manager (Command+E) or Unmount in the Disk Utility"; its screenshot
docs/screenshots/leopard/Device-Removal-mcde.png is renewed.
Measured (Xvfb, a 32 MB image with one ext4 partition on /dev/loop0p1):
- as the user on :82: the Selected menu shows "Eject" and the window
survives (0x60002d, 213x218); Command+E opens the Eject message
"/usr/bin/udisksctl did not succeed (status 1)." -- the key reaches the
call, polkit refuses a user.
- as root under a root ttsession on :83 (ttsession -c dtfile): selecting the
mounted folder and Selected > Eject unmounts; findmnt then prints
"UNMOUNTED" for /tmp/opencode/ejecttest/mnt.
- after that Eject, a simulated removal of loop0p1 in dtwm
(MCDE_DESK_TEST_DEVICE) logs only "desktop: loop0p1 (remove)" and opens
0 dialogs -- a volume that was put away stays quiet.
- make mcde-linux MCDE_DIRS="install programs/dtfile" and "install
programs/localized/C/msg" exit=0; gencat reads both catalogs;
MCDE_DIRS=plist "mcde-plist-check: ok".
Conditional Compilation
-----------------------
The following is a listing of the conditional compilation switches that
are "not obvious." Excluded are hardware or OS identifiers (e.g. __ultrix),
header file include flags, and macros (e.g. ABS).
DEBUG
Turns on code that prints out error messages (specifically
protocol errors).
DEBUGGER
Turns on code to help debugging Help-on-item.
DEBUG_ICON_BOX
Turns on code that alters iconbox spacing to help debug iconbox.
(?)
DEBUG_RESOURCE_DATABASE
Turns on code that dumps out dtwm's local resource database
to aid in debugging resource problems.
DEBUG_SESSION_HINTS
If defined, the session hints property is left on the root
window after being read. Normally, it is deleted.
ICCC_COMPLIANT
This enables stricter ICCCM compliance. Specifically, some
clients didn't get WM_PROTOCOLS quite right.
INTEGRATION_TESTING_
Swaps assignment of black and white on wait state cursor as
a quick indicator of which client is showing the wait state.
LARGECURSORS
Allows cursors larger than 16x16.
MESSAGE_CAT
Enables message catalog code for local language support.
MOTIF_DEFAULT_ICON
Enables the default window icon with four buttons.
OLD_CODE
Vestigal code.
R2_COMPAT
Enables support for old clients that still pass window geometry
hint information in WM_NORMAL_HINTS.
UNMAP_ON_RESTART
All windows are unmapped on restart.