Repository navigation
fix: resolve the individual P3 bugs from the 1.2.0 release-candidate QA sweep - #2027
Conversation
Back restores every column with no cursor. Pressing Left into an ancestor column then left its cursor empty, and F2, Delete, copy, cut and duplicate fell back to the folder the *parent* column has open, so they renamed or trashed the root column's folder instead of the focused row. - Left gives a parent column without a cursor the folder it has open, as descending into that folder would have left it. A parent still loading takes it once listed, through its own load target with no fallback, so a folder gone or hidden meanwhile leaves no cursor rather than one on an unrelated entry. Any cursor placed meanwhile, reveal or failed load cancels it; relocation rebases it and a kept listing clears it. The lgse#1437 preferred entry and its fallback are unchanged. - The "folder you entered" fallback for rename, delete and copy/cut applies only when the active column is the deepest one. - focus_parent, focus_child, select and the cursor moves share one place_committed_cursor helper (formerly focus_only). Fixes lgse#1993
Renaming a Ctrl+F filter result left focus and selection on whichever result took over its row, so the next Delete trashed a neighbour. When a rename completes, the stale-result prune finds the old path gone before the search index lists the new one, drops the result, and the results fall back to the result now in its slot (List, Icons) or to no selection (Columns). In Columns, rename labels were also looked up through the directory listing instead of the result rows, so the optimistic and restored names landed on the wrong row. Results now record a rename when it starts, from the inline editor (Enter or Tab) or the 10xer rename prompt. The prune keeps the renamed result in place under its new path while the view would show it, and the first update that lists the new path carries the selection, anchor and focus over to it; Columns also moves its cursor there. A rename to a path in another folder is recorded as a move: the result is dropped, not kept as a phantom, and no remaining result takes its selection, as the listing does. Failed and abandoned renames forget only their own record, so a newer rename's record survives. Columns rename labels resolve through the results, the directory reveal leaves result rows alone, and the Columns listing-focus fallback over results reuses focus_results_on_cursor, so focus returns to a refused result after its error dialog. Fixes lgse#1994
…rrows Plain Home, End, Page Up and Page Down move the cursor, selection and anchor in the model, but in List and Icons GTK's own Shift range origin stayed at the last arrow position, so a following native Shift+Home, Shift+End or Shift+arrow extended from there. Move that origin to the model's anchor after these moves, as restores and Ctrl+click already do. Columns passed Shift+Home and Shift+End to its GTK list, whose origin its model-driven arrows never set, so they selected only the edge item. Extend to the first or last item from the model's anchor there, as its Shift+arrows and Shift+page keys do. In List and Icons, plain arrows and their h j k l letters moved GTK's cursor while the model kept its old anchor, so Shift+Page Up/Down and Shift+click extended from an earlier item. The dispatcher now runs GTK's arrow binding for both and anchors the model at the cursor when the move replaced the selection, not when GTK keeps a range at an edge. It also cancels a pending click-to-rename, which the browser's own key handler no longer sees once the dispatcher stops the key; an unmoved letter is still stopped so it is never typed. Fixes lgse#1995
With keyboard focus inside a rendered document, PDF, table or archive preview, Delete moved the previewed file to Trash, Shift+Delete asked to delete it permanently, Ctrl+D duplicated it, F2/Ctrl+R started renaming it and Ctrl+Alt+N moved it into a new folder. The guards only exempted text widgets (lgse#670), so any other preview widget let the default-map file commands act on the selection behind it. Check whether focus is anywhere inside the preview drawer, whatever widget it renders, for these commands, as the clipboard keys already did. The 10xer map is unchanged: its preview keys hand focus back to the listing before a file command runs. Fixes lgse#1996
… cost Answer the window dispatcher's preview-focus check with PreviewDrawer::owns_focus. The slot, overlay, revealer and resize grip that the old check also accepted are never focusable, so the result is unchanged. Describe what the check tests rather than overclaiming, and leave the new scenario's cost out until it is measured. Refs lgse#1996
The folder picker stripped "~/" and joined the remainder onto home, so a remainder starting with "/" (as in "~//x") replaced home with the filesystem root. Go, copy to and move to then searched and acted outside home. Trim leading slashes from the remainder so repeated slashes after "~" collapse as in POSIX paths. Fixes lgse#1997
Also name the jump-key test helper after what it does, so it no longer shares a name with the video-clip helper. Refs lgse#1993
The rail sync showed every section heading toggle whenever the sidebar rebuilt or left the icon rail, including the empty Pinned section that should appear only while files are dragged over the sidebar. The first-paint rebuild therefore showed an empty PINNED heading at startup. The rail sync now reapplies the empty section's drag visibility, which also keeps its heading hidden in the rail during a drag. Fixes lgse#2000
In Columns, Tab after renaming a folder whose child column was open renamed it but opened no editor on the next item. When the rename landed, relocating the open child column truncated the columns from that depth, and the truncation cancelled every inline rename, including the editor Tab had just opened in the retained parent column. The cursor mirror was blocked by that editor, so the child column and breadcrumb kept showing the renamed folder. Truncating columns now cancels only a rename inside the columns it closes, and Tab mirrors the child column to the item the rename moves to at once, without a preview, before its editor opens. Fixes lgse#2002
…result In Columns with Ctrl+F results showing, dismissing the Shift+Delete confirmation (Escape or a backdrop click) left focus on the wrong result, so the next arrow and Delete acted on a file the user did not pick. The confirmation returns focus through the window's listing fallback, focus_rebuilt_active_column. It scrolled to the browser's directory cursor mapped through the column's listing, then focused the list, but the results replace those rows and keep their own cursor, so the directory position landed on an unrelated result row (the top one when the cursor was on the first file). 0530b01 (lgse#1994) already made that fallback focus the results on their cursor; this adds the regression scenario for the delete confirmation in Columns, Icons and List, both dismissals and the next arrow key, a mutation that removes that branch, and documents the behaviour. Fixes lgse#1998
…a drag Also clarify when sync_empty_pinned_section runs. Refs lgse#2000
The breadcrumb and the Ctrl+L text followed the deepest column on every ColumnAdded event and were never resynced on a view switch. After Columns mirrored a child folder beside the focused column, switching to List or Icons showed the active (parent) folder while the location bar still named the child, so Ctrl+L then Enter entered the child unasked. The location bar now follows one mode-aware rule: the deepest column in Columns, the active folder in Icons and List. A view switch, an added column and relocated columns all sync through it. Fixes lgse#1999
Previous/next audio and video built their sequence from file names and dropped only files whose metadata probe had answered "not media". List and Columns never run that probe, so text named like a video (fake.mp4, notes.h264) was counted and stepped to; its text preview then dropped the player and stranded media stepping. Icons only agreed because it probes visible cards. A file now joins the sequence when its probe found media or, until the probe reaches it, when its leading bytes back the media name: the same check the preview makes before choosing a player. Bytes are read off the GTK thread and cached per file; unread files stay out until they answer, and the shown player's position and previous/next buttons refresh when they do. The shown file always anchors its sequence. Fixes lgse#2003
The window and chooser key handlers run in the capture phase, so they claimed the context-menu key and opened the pane's context menu before the focused Back button's own key controller could list its history. Both now leave the key to a focused Back button that has a history menu. Cover the keyboard paths in the back-history-dropdown QA scenario and in the window and chooser keyboard dispatch tests. Fixes lgse#2001
… show With a pane filter query active and focus on the results, the search results stage yielded every key except the arrows, clipboard keys and Delete straight to GTK, so the window's Undo and Redo handlers never ran and Ctrl+Z after Move to Trash did nothing. Undo and Redo replay the operation history rather than act on a selection, so the results no longer claim them. Ctrl+Z with focus in the filter field stays text editing. Fixes lgse#2005
…ancestor Inotify watches the open folder itself, not its path, so a rename of one of its ancestors reached no monitor: the pane kept the old path, new files were queried there and dropped, deletions still applied, and F5 fell back to the nearest existing ancestor of the stale path. - After each batch of changes, the local directory monitor looks its folder up at its path off the main thread and reports the folder's removal when it is gone, which feeds the existing departure check. - find_by_identity now takes the departed folder and searches its nearest existing ancestor: the folders in it when the parent remains, else the same path below each of them, so a folder carried along by a renamed ancestor is found by its identity. The browser follows the renamed ancestor, which rebases search indexes and open columns. - A deeper column's own removal report, which its parent column's monitor otherwise covers, now also checks that the first column of the watched chain is still where it was, since no open monitor sees a rename above it. A deleted ancestor still deletes the open folder, whose monitor reports it as before; the lookup then finds nothing and the nearest existing ancestor is restored. Fixes lgse#2004
Rename the open folder's parent from outside in Columns, Icons and List, write a file into the folder, and expect it listed without a refresh; F5 then reloads the folder at its new path. Refs lgse#2004
Move the mapped Back button lookup and the per-widget key press into test_support::widgets, used by the window and chooser regressions, and document that Menu and Shift+F10 on a focused Back button list the back history. Refs lgse#2001
…rename Both paths now open or close the child column through one helper, the cursor alone previewing a file. Adds a columns test that closing a column to the right keeps a rename in the parent column, rates the Tab-past-open-folder scenario, and qualifies the Tab rename docs for filtered columns and mirroring turned off. Refs lgse#2002
The unresponsive-GVfs probe ran after PreferenceManager::shared(), whose folder-view watch creates a file monitor through g_file_new_for_path and so GIO's default VFS. With a gvfsd that never answers, that call blocked for the 25 s D-Bus activation timeout before the 2 s probe could run, and the window appeared after about 27 s. Run the probe right after logging starts, before anything asks GIO for its default VFS, and assert in debug builds that GIO has not loaded its modules when the probe runs, so every QA launch catches a regression of this order. Fixes lgse#2006
Esc, a failed submit and the mount paths refilled the location entry from the active column, so in Columns with a mirrored child the entry reverted to the parent while the breadcrumbs named the child, and the next Ctrl+L prefilled the parent. The entry now restores from the same displayed folder the breadcrumbs follow. Truncated columns sync through that rule too, replacing the last caller of the active-column variant. Fixes lgse#1999
Assert that the isolated launch ran exactly one test, explain a failed GIO check, and loosen the volume-monitor wording now that more start-up work follows the probe. Refs lgse#2006
Review follow-up for the content check behind media stepping: - The answer cache is trimmed only at the start of a walk, and never forgets the listing being walked; in-flight files are not cached at all. Past the cap, a walk no longer wipes its own answers and re-reads them forever. - One cancellable reader per preview reads outward from the shown file in growing chunks (the nearest file on each side first) and refreshes the position after each chunk that answered. It stops when the preview closes, stops showing a player, or starts reading for another shown file. - Reads run as background work through each folder's mount lane, so a stalled mount skips them instead of parking workers. - A failed read is no answer: it is not cached as media and is asked again when the shown file changes. The metadata probe keeps trusting the name when a read fails. - The docs no longer claim remote locations and route files are checked by content. Refs lgse#2003
… folder The right-click hierarchy menu read the active column, so in Columns with a mirrored child it marked the parent as current and left the child out while the bar named the child. It now uses the same displayed folder as the bar. Fixes lgse#1999
Second review follow-up for the content check behind media stepping: - A background request is skipped whenever another request is on the same mount, not only when it has stalled. Reads now wait 100 ms and try again while the mount still answers, and give up only once it stalls, times out or fails, so a folder load or the previous reader no longer leaves real videos out of the count. - Each read follows symbolic links through Progress::reach, so a dead link target trips only that file's path. - Answers live in the preview that walks the listing and are trimmed to it on every walk, so one window can no longer forget another's answers. The global cache and its size cap are gone. - Reads stop as soon as the preview drops its player, not only after the next chunk that answers. Refs lgse#2003
Review follow-up for the renamed-ancestor fix. - The look a native monitor takes at its folder's path after each batch now runs as background work on the mount's lane, so it is skipped while the lane is busy or stalled instead of parking a GLib worker on a server that stopped answering. - The search for a departed folder by its identity runs as an interactive request on the lane and never looks into a mount point, which cannot be renamed and could hang or trigger an automount. - start_watch takes the identity the folder's load recorded, so the monitor also reports its folder gone when the old path holds another folder that the mount's identity rule proves different, as after `mv b b2 && mkdir -p b/c`. Mounts that renumber folders prove nothing, so only existence counts there. No extra stat is needed. - The monitor keeps its pending look and aborts it when it is dropped. Refs lgse#2004
List the post-batch look and the identity search among the lane's requests, describe them under Folder monitors, note the renumbering-mount limitation, and re-wrap the keyboard-navigation paragraph. Refs lgse#2004
…ename row German and Simplified Chinese call the listing "Auflistung" and "文件列表"; "Liste" and "列表" read as the List view, though the row also applies in Icons and Columns. Move the test-only reference_rows into the module's tests and loop the new test over tenxer_scopes instead of a copy of it. Refs lgse#2013
restart_udiskie_at now returns a RestartOutcome, and restart_udiskie translates the RESTART_WARNING constant once, so a future warning cannot reach the output untranslated. Behaviour is unchanged. Fixes lgse#2014
Sending Tab from the name field straight to the files left 10xer users no keyboard route to the file type filter, application choices, or the read-only option. Tab from the name field now walks those options and then returns to the files; with none it returns straight to the files. Shift+Tab steps back through the options to the name field, and from the name field returns to the files. Fixes lgse#2008
Requests without a name field, such as folder choosers, sent Tab from the header straight to the files, so their choices had no keyboard route. Tab from the header now goes to the name field when there is one, otherwise into the options, and to the files when there are neither. Fixes lgse#2008
…section title GTK keeps a titled menu section's label outside the widget tree while the section is empty, but still names the section after it. An AT-SPI client reading the section's relations realizes that detached label, and GTK fails `gtk_at_context_set_accessible_role: assertion '!self->realized'` when the label joins the tree. Strata created titled sections only for providers without a heading icon, which matches the report that the critical appears only with LocalSend and KDE Connect installed. Name icon-less providers with the custom heading row the icon path already uses, so no provider section carries a GTK title in a rendered menu. Refs lgse#2011
GTK records every custom menu slot in its top-level slot table under a key the slot widget owns, and never drops the entry when the slot is removed. The context menu keeps one model across opens and clears its provider sections on each rebuild, so reusing `provider-heading-<id>` looked up a freed key: GTK warned "Duplicate custom ID" and could insert the heading into a freed slot, or fail and fall back to a GTK section title. Each heading now takes an ID with a per-insertion serial. Also note in the doc comment that a GTK section title is detached until GTK's idle separator sync, not only while its section is empty. Refs lgse#2011
…rnings `G_DEBUG=fatal-warnings` aborted the reopened-menu test on any unrelated GLib warning during setup, without naming the cause. Record only GTK's "Duplicate custom ID" warnings and accessible-role criticals through a log writer in the test's own process, forward every message as usual, and assert none were recorded. Refs lgse#2011
Collect headings and missing translations with iterator chains instead of four nested blocks. No behaviour change. Fixes lgse#2014
Both heading-row tests built the same model, popover, action group and renderer. Move that setup into a `RenderedMenu` fixture. The retired-menu test keeps its own setup: it renders without a popover and shares one liveness cell across epochs. Refs lgse#2011
The typos check rejected the "Caf%C3%A9" fixture and "uncatalogued"; lower-case the fixture so the existing café ignore rule covers it and reword the comment. Also drop four comments that only restate the item they sit on.
|
Review pass on this PR, pushed as two commits on top of 1216e5a:
The earlier "Quality build and lint" failure was an artifact-upload outage on the runner, not a build error; the rerun passed. Local verification in a fresh worktree: |
Description
Stacked on #2026, which is stacked on #2025. Merge those first; until then this diff also shows their commits.
Fixes the seven individual P3 bugs from the 1.2.0 release-candidate QA sweep. Each fix was made and reviewed on its own branch, then merged here.
--unlock-volumeon an already-present non-encrypted volume never shows "This is not an encrypted volume" #2007,--unlock-volumeon a present non-encrypted volume: the unlock started before the window's first folder opened. Opening that folder sends a reset that clears every open-argument status card, so the "This is not an encrypted volume" card was removed straight away. The unlock now starts after the first folder opens.G_IO_ERROR_FAILEDwith the system error text after a colon. Those messages are now recognised, so a refused SMB connection gets the same guidance as SFTP. GVfs reports an unresolvable host only as "Invalid argument", so that case still gets the generic message.gtk_at_context_set_accessible_rolewith file providers and AT-SPI active #2011, intermittentgtk_at_context_set_accessible_rolecritical: GTK's titled menu sections keep their title label outside the widget tree until an idle sync, but still name the section after it. An AT-SPI client reading that relation activates the label's accessibility context, and adding the label to the tree later fires the critical. Strata only used titled sections for file providers without an icon (LocalSend, KDE Connect). Every provider heading is now drawn as Strata's own row. Each heading gets a unique custom-slot ID, because GTK keeps freed slot IDs in its lookup table. The cause was confirmed against GTK's source and a standalone reproducer, but not in Strata with AT-SPI, so this references fix(a11y): intermittent Gtk-CRITICALgtk_at_context_set_accessible_rolewith file providers and AT-SPI active #2011 rather than closing it.action_icon.*names are translated, and two typos are fixed.New strings are translated in all 13 languages. The new Hungarian, German and Simplified Chinese wording, and the other new translations, would benefit from native-speaker review.
Not verified locally:
scripts/code-health.shdid not run, becauseCS_ACCESS_TOKENwas not set. A reviewer checked the new and changed functions against the AGENTS.md limits by hand.new-folder-with-selection-groups/columnsfails at line 34 on this machine at fix: resolve the P2 bugs from the 1.2.0 release-candidate QA sweep #2026's tip, at fix: keep keyboard file commands on the item the user chose #2025's base and onmain(e7f3d068) as well, the same failure fix: keep keyboard file commands on the item the user chose #2025 describes. It is not caused by this branch.gvfsd-smbon a private session bus.--unlock-volumeon an already-present non-encrypted volume never shows "This is not an encrypted volume" #2007 was not run end to end with a real volume.Visual evidence
N/A. These are keyboard-order, naming, error-message, translation and GTK-warning fixes; the behaviour is described above and in the steps below.
How to test
--unlock-volumeon an already-present non-encrypted volume never shows "This is not an encrypted volume" #2007: with a non-encrypted volume already listed (for example an fstab entry), runstrata --unlock-volume <device>.current_name=report.draft.pdf, then one with two file filters. Press Tab repeatedly, then Shift+Tab.smb://host/My%20Share/(or a share named "Ünïcødé").smb://127.0.0.1:1/share.gtk_at_context_set_accessible_rolewith file providers and AT-SPI active #2011: install the LocalSend and KDE Connect providers, run withGTK_A11Y=atspiand an AT-SPI client walking the tree, then open item context menus repeatedly.strata --install-udiskie-unlockwithLANG=hu_HU.UTF-8.Expected result:
gtk_at_context_set_accessible_rolecritical; provider names still head their actions.Related issue
Closes #2007
Closes #2008
Closes #2009
Closes #2010
Closes #2013
Closes #2014
Refs #2011
Refs #2018 (first item)