Repository navigation
feat(settings): add a Diagnostics page that checks runtime dependencies - #1735
Merged
Merged
Conversation
Settings → Diagnostics runs on-demand checks of the components Strata relies on but does not link against. Where possible it exercises the feature itself: sample image, PDF, video and audio files go through the real preview sandbox and worker pool, and the update server connection is tested. It also checks sandbox helper tools, GStreamer audio output, GVfs and its remote and device backends, UDisks2, the desktop portal, Secret Service, folder monitoring, the terminal, syntax highlighting data, the MIME database and custom actions. Each result shows what is affected and, when known, the install command for the detected distribution. Copy report copies the results with version and environment details for bug reports. Refs #1734
…gnostics Place the Copy report and Run buttons below the description, styled like the desktop integration actions with Run as the primary action. A compact System box above the results shows the version and environment details the report includes. Install commands get a play button that runs them in the user's terminal. The command words are passed as arguments rather than through a shell, and the window stays open until Enter is pressed. Refs #1734
Expose workers_supported directly instead of wrapping it, and remove a test whose assertions only restated one-line status mappings. Refs #1734
Contributor
Author
ReviewMerged What I checked
Changes in d4540c1
Comment audit: I read every added comment. The rest explain non-obvious constraints: GTK-thread-only probes, the rate-limit-free endpoint, the sandbox path lookup, the reasoning behind the positional arguments, and the Local verification (scoped: this PR touches no shared infrastructure):
CI: all required checks pass on d4540c1. Still open: the visual evidence in the PR description has to be uploaded through the GitHub editor. |
This was referenced Oct 18, 2026
l0gicgate
added a commit
that referenced
this pull request
Oct 20, 2026
…ompat-followups Resolves the catalog, services, preview test, context menu, theme and typed-navigation conflicts, and adapts what main added since the fork to this branch's rules: - The user stylesheet (#1758) is watched through the monitors worker and re-read off the UI thread. - The Diagnostics page (#1735) and the Integrations page (#1748) detect the package manager and resolve the terminal off the UI thread; the Run-in-terminal button spawns through the reaper closure. - Connect to server (#1726) waits for a native path's asynchronous validation instead of pinning and closing at once. - The pinned-places tests read the GTK bookmarks file through adapters::bookmarks after the settings writer settles. - Traditional Chinese (#1745) gets the strings this branch adds.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds Settings → Diagnostics, so users and maintainers can find out why previews, thumbnails, network locations, drives or desktop integration don't work. Nothing runs until Run is selected, and no check changes or installs anything.
Where possible a check runs the feature itself instead of looking for a binary. It renders a sample image through a one-shot bubblewrap sandbox and through the pooled workers, a sample PDF and a one-second video through the same thumbnail path as the file list, and reads FFprobe metadata for a sample WAV. It also tests the HTTPS connection to the update server through
api.github.com/rate_limit, which doesn't count against the rate limit. The remaining checks cover sandbox helper tools (looked up on the sandbox's build-timePATH, not the user's), GStreamer audio elements and sink, GVfs and the SFTP/SMB/FTP/WebDAV/MTP/AFC/gphoto2 backends, UDisks2 and the volume monitor, xdg-desktop-portal, Secret Service, folder monitoring and the inotify limit, the terminal, GtkSourceView language data, the MIME database, RAR support and custom actions.Results stream in as each check finishes, below a compact System box with the version and environment details. Each result is marked passed, warning or problem, says what is affected and, when it knows the package, shows an install command for the distribution detected from
os-release. The command can be copied or run in the user's terminal with its play button; the words are passed as arguments rather than through a shell, and the terminal stays open until Enter is pressed. Copy report copies everything, with version, installation method, toolkit, GStreamer, kernel, desktop, display server and renderer, for bug reports. The bug report form gets an optional field for it.Developer notes are in
docs/diagnostics.md. All strings are translated into the 11 supported languages.Visual evidence
screenrecording-2026-10-17_15-29-09.mp4
How to test
ffmpegthumbnailerorsquashfs-tools(or start Strata withGIO_USE_VFS=local), then select Run again.Expected result: Every row moves from "Checking…" to a result within a few seconds, and the summary shows the counts. On a complete install, the sandbox, worker, PDF, video and audio rows pass. A missing tool shows a warning with an install command for your distribution, and
GIO_USE_VFS=localshows the GVfs problem, with the remote backends reported as unavailable. The play button opens your terminal running the install command, which waits for Enter before closing. The pasted report lists the environment details shown in the System box and every result grouped by section.Related issue
Closes #1734