Repository navigation
feat(file-chooser): route file dialogs to the default file manager's picker - #39
Merged
Merged
Conversation
Omarchy after 4.5.0 prefers Files' picker for other apps' Open/Save dialogs (FileChooser=folio;gtk, Omarchy PR #19035), while the file-chooser feature always wrote flea;gtk and required Flea installed. The feature now follows the default file manager: file_manager options name the portal backend they ship (`chooser`), and the play routes FileChooser to it, with gtk behind: - Flea: through `flea --picker`, which also floats the picker (the plain ini line left it tiled); - Files: folio;gtk, whose float rule ships with Omarchy; - Nautilus, or the feature off: whatever Omarchy's own copy of the file sets (no line on 4.5.0, folio;gtk later), Flea's picker and its window rule taken out with `flea --picker off`. A user without a portals config of their own and the feature off gets none written: Omarchy's packaged one already applies. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lbssousa
force-pushed
the
feat/file-chooser-follows-file-manager
branch
from
November 22, 2026 16:45
5099de3 to
e79177c
Compare
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.
Stacked on #38 (it uses the Files option added there). Merge #38 first; this PR's base then moves to
main.Summary
Omarchy after 4.5.0 prefers Files' picker for other apps' Open/Save dialogs (
FileChooser=folio;gtk, omacom/omarchy#19035). Thefile-chooserfeature always wroteflea;gtkand required Flea installed. It also wrote only the portal line, so Flea's picker window was never given its float rule.The feature now follows the default file manager. Each
file_manageroption names the portal backend it ships in a new catalog field,chooser, andjust checkaccepts that field only on file managers. The play routes FileChooser to that backend, withgtkbehind it:flea;gtk+ float ruleflea --picker, run when the portal line or the float rule inbindings.luais missingfolio;gtkfolio;gtklater)flea --picker offWith the feature off and no portals config of the user's, nothing is written, so Omarchy's packaged config keeps applying. The GTK_USE_PORTAL / qt6ct part is unchanged. The feature is renamed "File dialogs from the default file manager".
Test plan
just checkflea;gtkwith the float rule; a second run changes nothingflea;gtkand the rule returnfolio;gtk) passed as the seed:folio;gtkfolio;gtkfolio;gtkcom.thisisgm.flea.picker, floating (hyprctl clients)🤖 Generated with Claude Code