mapsize 1.2.0: permanent delete and in-map reveal when headless
On a headless Linux or BSD system (no DISPLAY or WAYLAND_DISPLAY) nothing empties the freedesktop trash, so trashing never freed space. There, d now deletes permanently after an explicit confirmation, checking owner and type against the scan and removing through an os.Root on the parent so a swapped symlink cannot redirect it. o shows the folder in the map instead of launching a file manager. Desktop sessions, macOS and Windows are unchanged.
This commit is contained in:
@@ -56,8 +56,8 @@ file-manager integration have not yet been tested there.
|
||||
| x, g, e | file types, top lists, scan info & errors |
|
||||
| D | find duplicates |
|
||||
| a | toggle allocated / logical size |
|
||||
| c, o | copy path, reveal in file manager |
|
||||
| d | move to trash (asks; disabled with `--read-only`) |
|
||||
| c, o | copy path, reveal in file manager (headless: show the folder in the map) |
|
||||
| d | move to trash, or delete permanently when headless (asks; disabled with `--read-only`) |
|
||||
| s, r | save snapshot, rescan |
|
||||
| T | cycle theme |
|
||||
| ? | help |
|
||||
@@ -160,9 +160,16 @@ uses ordinary filesystem APIs, and duplicate detection reads file content
|
||||
|
||||
`d` moves the selected item to the system trash (freedesktop.org trash on
|
||||
Linux, `~/.Trash` on macOS, the Recycle Bin on Windows) after confirmation,
|
||||
using native file operations — never a shell. Permanent deletion is not
|
||||
offered. Trash is unavailable while scanning, for snapshots, and in
|
||||
read-only mode.
|
||||
using native file operations — never a shell.
|
||||
|
||||
On a headless Linux or BSD system (neither `DISPLAY` nor `WAYLAND_DISPLAY`
|
||||
set) nothing ever empties the trash, so trashing would not free any space.
|
||||
There `d` deletes permanently instead, after a confirmation that says it
|
||||
cannot be undone, and `o` shows the folder in the map rather than opening a
|
||||
file manager.
|
||||
|
||||
Deletion is unavailable while scanning, for snapshots, and in read-only
|
||||
mode.
|
||||
|
||||
## Documentation
|
||||
|
||||
|
||||
Reference in New Issue
Block a user