Skip to content

Merge upstream Arkha 1.1.0, Voyager 1.2.0 - #3

Merged
HydrAPI merged 26 commits into
masterfrom
merge-upstream-3
Nov 19, 2026
Merged

HydrAPI merged 26 commits into
masterfrom
merge-upstream-3

Conversation

@HydrAPI

@HydrAPI HydrAPI commented Nov 19, 2026

Copy link
Copy Markdown
Owner

Takes over the 24 new commits of dekart811/arkha (thumbnailer sandbox, safer custom actions and drops, thumbnails that follow files, Rename All keeps metadata, Windows drive names, settings that survive a faulty line, and more), with Voyager's names, and sets the version to 1.2.0. Checked locally: clippy, 186 tests, release build and the screenshot run.

🤖 Generated with Claude Code

dekart811 and others added 26 commits November 18, 2026 20:44
Placeholders were shell-quoted, which is safe as %f, but many write
"%f": inside those double quotes the quoted name's $(…) ran, so a file
named song$(command).mp3 ran the command. Placeholders now follow the
quoting written in the command (util::expand_shell): within quotes,
those are closed around the name and opened again after it, so "%f",
'%f' and "%f.bak" are all safe and get the name whole. Names from %n and
%N starting with "-" are given as "./-name", not taken for options.

Found in the security audit; a unit test runs a dangerous name through
sh in six spellings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A name suggested by the program a file is dragged from (an archive
manager, say) was used as it was: an existing file of that name was
written over, and a name like ".bash_profile" dragged into the home
folder made a hidden file that runs at the next login. Leading dots are
now removed, and a name that's taken gets a free one ("name (2)").

Found in the security audit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Opening an executable asked whether to run it with Run as the default:
on FAT-formatted drives every file is executable, so a "text file"
starting with #!/bin/sh ran on Enter. Cancel is now the default. And a
name with a right-to-left mark could pass "gpj.exe" for "exe.jpg": the
questions about running, trashing and deleting now show such marks as
<U+202E> (util::visible_controls).

Found in the security audit. tools/gui-tests/exec-ask.sh: Enter doesn't
run the script, the Run button does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
As the thumbnail spec asks: ~/.cache/thumbnails and its folders 700,
thumbnails and failure notes 600. The cache folder and the failure
notes, which name files, were readable by other users (755, 644).

Found in the security audit; tools/gui-tests/thumb-retry.sh checks the
permissions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Moves and renames move thumbnails on threads of their own, and all used
one temporary name: two at once could write into each other's file.
Each now writes beside its thumbnail under a name of its own.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A search and replace producing a "/" moved files into other folders,
even ones above (folder.join("../x")). Such names are now listed as not
acceptable, with the empty name, "." and "..".

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thumbnailers read files from anywhere (Downloads, USB drives) as soon as
a folder is shown, and ran with all the user's rights: a file made to
exploit one (Ghostscript through PostScript thumbnails, a media library)
could reach everything. Now the system's thumbnailers and Arkha's own
video ones (unchanged) run in bwrap, as GNOME runs them: the system
read-only, no home folder, only the file to read, read-only, and a
folder of their own to write the image to (in the runtime folder, or the
cache where that can't be written to); no network, no other processes,
ended with Arkha. The user's own commands run as written (they may use
scripts in the home folder). Without bwrap, or where the system doesn't
allow sandboxes, thumbnailers run as before, and Arkha says so once;
ARKHA_THUMBNAIL_SANDBOX=0 turns it off.

A unit test checks with real bwrap that a thumbnailer reads its file and
writes its image but can't read another file or write anywhere, each
command checked without the sandbox too. tools/gui-tests/thumb-sandbox.sh:
the sample files get the same thumbnails with the sandbox, without it,
and where it's refused. Tried on Debian 13, Ubuntu 26.04 (with its
AppArmor restriction, as a normal user) and Fedora 45: the same
thumbnails with it as without.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Debian and Fedora recommend it (installed with Arkha by default), Arch
and the AUR packages list it as an optional dependency ("recommended");
BUILDING.md says what it's for and what happens without it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
While an item was renamed, its name was emptied so it wouldn't show
around the edit field: the icon view then laid the item out without a
name, and its picture (a thumbnail, say) went behind the field. The name
is now measured as always and just not drawn (IconLabel::set_hidden).

tools/gui-tests/rename-thumb.sh: a video with a thumbnail and a long
name keeps its picture while it's renamed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ives

Arkha keeps loaded thumbnails in memory by their path, and a file's
thumbnail has the same path as the next file's of that name: a
folder.jpg deleted and another moved in under that name showed the old
picture, as moving and removing thumbnails with their files didn't tell
the views. Now every thumbnail file written or removed so (thumbcache)
is forgotten from memory and the views told (icons::thumbnails_changed).

A move between drives copies file by file and deletes the originals at
the end, but moved the thumbnails as the copies arrived: cancelled, or a
copy found spoilt (the original then kept, a folder with it), the
originals were left without theirs. The copies now get copies of them
(thumbcache::copied), and an original's go once it's deleted. A moved
folder's are moved on a thread of their own (a big one held up the
move), and moving to a network place or phone no longer leaves the old
thumbnail behind.

Unit tests for copied thumbnails and a move between drives with a
spoilt copy in a folder; tools/gui-tests/thumb-samename.sh: the
folder.jpg case.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
thumbnails_in_a_move_between_drives took the first copy checked (the
spoilt one) to be the first by name; the order a folder lists its files
in isn't fixed, and it failed now and then. It now reads which one was
spoilt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GLib refuses a whole settings file over one line it can't read (typed
by hand: a line without "=", a broken "[group", a key before any group),
and Arkha then started with its defaults and saved them over it at the
next save: all settings gone. Such lines are now left out and the rest
read (util::load_settings); the file as it was is kept as NAME.broken,
which the output mentions. For arkha.conf, the custom actions and
thumbnailers, and the folders' remembered views.

Found in the edge-case review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
It renamed with rename(2), past GIO, and GVfs, which keeps notes,
emblems and custom icons by path, only follows renames made through
GIO: they were lost. It now renames through GIO (g_file_move, replacing
only what was asked).

Found in the edge-case review. tools/gui-tests/rename-all-meta.sh: two
files with notes renamed to upper case keep them; a11y.py's press also
presses radio buttons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The check for a folder copied or moved into itself compared addresses:
copied into a link to its own subfolder, a folder copied itself into
itself, some 2,000 levels deep, until the path was too long. The check
now also compares the real paths, links followed.

Found in the edge-case review; a unit test copies into such a link.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Kept by their folder's URI, a folder renamed or moved lost its view and
sorting, and a deleted one's stayed in folders.conf for good. Moved or
renamed in Arkha, a folder's settings and those of the folders in it now
go along (folders::follow); deleted, they go; trashed, they're kept for
a restore.

Found in the edge-case review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Deleted, moved or renamed by another program, the open folder stayed in
its tab, and making or pasting anything there failed. The tab now goes
where it went, if the system says, else to the nearest folder above
that's still there, as Caja does.

Found in the edge-case review. tools/gui-tests/folder-gone.sh deletes
and renames the open folder.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The icon view's rename field leaves line breaks out, and the name it
showed counted as a new one: such a file was renamed by F2 and Enter
alone. It's now compared with the name as shown.

Found in the edge-case review; tools/gui-tests/rename-linebreak.sh.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"name (copy).txt" and "name (2).txt" of a name close to the limit (255
bytes) were longer than names can be, and a copy or duplicate couldn't
be made. The name part is now cut short to fit.

Found in the edge-case review.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paths were made into text before going to custom actions, thumbnailers,
a program run, a terminal or the archive manager: a name that isn't
UTF-8 (Latin-1, say) became another name, and the program didn't find
the file. Commands are now filled in and run as bytes (OsString).

Found in the edge-case review; unit tests run an action and both kinds
of thumbnailer on a Latin-1 name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Onto a drive formatted as FAT, exFAT or NTFS, names with characters it
doesn't allow (" * : < > ? \ | and control characters) failed one by
one: they're now made "_", and spaces and dots at the end left out, as
Nautilus does. Onto FAT32, a file of 4 GB or more is refused at once,
not after writing 4 GB of it.

Found in the edge-case review. Unit tests for the names; an optional
one copies onto real drives (ARKHA_TEST_FAT, ARKHA_TEST_EXFAT), passed
on a FAT32 and an exFAT drive.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5bbbb36 committed it without its executable bit (the tests run it with
python3, so nothing failed).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Thumbnailers in a sandbox; thumbnails that move and go with their
files; the security audit's fixes; copies onto Windows drives; search
results that follow moves; file operations in their own window; the
edge-case review's fixes (settings files, Rename All, links, folder
views, long and non-UTF-8 names); About's License and Source Code
buttons. Version 1.1.0 in Cargo.toml (and Cargo.lock), the release in
the AppStream metainfo, and the README's speed table measured again
with it, together with Caja and Nemo.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pkgver 1.1.0 with the release's checksums (arkha-bin's matches the
published prebuilt program), and arkha-git's version as makepkg works it
out for the release commit; each .SRCINFO made again. All three build,
with their tests passing and the translation included.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Takes over: thumbnailers in a bubblewrap sandbox, custom actions safe
within quotes, no file replaced or hidden when saving by drag, the run
question defaults to Cancel, a thumbnail cache only its owner reads,
thumbnails that go with moved files, Rename All keeps notes, emblems and
icons and takes no "/", copies onto Windows drives with names they can
hold, settings files that survive a faulty line, remembered folder views
that follow their folders, and more. Names are Voyager's.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@HydrAPI
HydrAPI merged commit f3d69c8 into master Nov 19, 2026
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants