Repository navigation
feat(desktop): declare the trash URI scheme handler - #2065
Merged
Merged
Conversation
Strata already opens trash:/// through Exec=strata %U, but the desktop entry only declared inode/directory, so xdg-mime tooling and application choosers never offered it for the scheme.
This was referenced Nov 5, 2026
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
x-scheme-handler/trashto the desktop entry'sMimeType=. Strata already openstrash:///throughExec=strata %U, but without the declarationxdg-mime-based tooling and application choosers never offered it for the scheme, so it had to be mapped by hand.The existing installers and the in-app updater rewrite the entry and run
update-desktop-database, so per-user installs pick this up on their next update.One behaviour to weigh: a default set in
mimeapps.listalways wins, but when none is set for the scheme, GIO falls back to the first declared handler. Strata can therefore become the effective trash handler on a system with no explicit default.Visual evidence
N/A: desktop entry metadata only, with no change to Strata's interface.
How to test
~/.local/share/applicationswithmise run install-local, which also refreshes the MIME cache.gio mime x-scheme-handler/trashand confirm Strata is listed under Registered and Recommended applications.gio open trash:///with Strata as the default for the scheme.mimeapps.listand rerun step 2.Expected result: Strata is offered as a handler and
gio open trash:///opens its Trash view. In step 4 the other handler stays the default, with Strata still listed as a candidate.Related issue
Closes #2052