Repository navigation
Use Files for other apps' Open and Save dialogs - #19035
Merged
Merged
Conversation
Folio 0.5.0 is an xdg-desktop-portal FileChooser backend, `folio chooser`, so a browser's or an editor's Open and Save dialog can be a Files window: the same views, sidebar and keys, with a bar along the bottom for the name, Cancel and the answer. hyprland-portals.conf now prefers it for the file chooser, `folio;gtk`, so the GTK chooser still answers on a machine whose folio doesn't ship the portal yet. Its windows have the app id folio-chooser, tagged as floating windows the way the GTK portal's are, so they float centred at 875×600. A migration adds the line to an existing config that hasn't picked a file chooser, and restarts the portal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
[Medium impact] The PR appears safe to merge; the latest change fixes the linked-config issue without introducing a new actionable problem. SummaryThe PR makes Files the preferred Open and Save dialog, with GTK as the fallback.
No new actionable issues were found in the change since the previous review. The previous thread was unnumbered, so it has no numbered finding entry. Reviews (2) · Last reviewed commit: "Keep a linked portal config linked when ..." · Reviewed by Greptile |
A hyprland-portals.conf linked into a dotfiles repo passed the migration's checks, and sed -i replaced the link with a plain file, leaving the managed copy behind. It now edits through the link, as earlier migrations do. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
11 of 12 tasks
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.
Other apps' Open and Save dialogs come from
xdg-desktop-portal-gtk, so picking a file in a browser or an editor drops you into a GTK window that looks and works nothing like Files. Folio 0.5.0 is an xdg-desktop-portal FileChooser backend (omacom/folio#132), so those dialogs become a Files window: the same views, sidebar and keys, with a bar along the bottom for the name to save under, Cancel and the button that answers.What changes
config/xdg-desktop-portal/hyprland-portals.confprefers Folio for the file chooser:org.freedesktop.impl.portal.FileChooser=folio;gtk. The portal searches that list in order, so on a machine whose folio doesn't shipfolio.portalyet, the GTK chooser answers as before. That makes this safe to merge ahead of the package.default/hypr/apps/system.luatagsfolio-chooserwindows+floating-window, the same treatment the GTK portal gets. They float, centred, at 875×600, the size Folio asks for anyway.[preferred]in an existinghyprland-portals.confthat hasn't picked a file chooser, then restarts the portal if it's running. A config that already names one, a missing config, or a user's ownportals.confis left alone.docs/theming.mdsays where the file chooser now goes.Depends on
Folio 0.5.0 in omarchy-pkgs, with its PKGBUILD installing
share/folio.portal, the D-Bus service file andfolio-chooser.desktop. Until that lands, the fallback keeps the GTK chooser.Checked
portals.conf(5)describes a key's value as a list searched in order for an implementation of the interface, which is what the fallback relies on.🤖 Generated with Claude Code