Skip to content

Use Files for other apps' Open and Save dialogs - #19035

Merged
dhh merged 2 commits into
quattrofrom
folio-file-chooser
Nov 15, 2026
Merged

dhh merged 2 commits into
quattrofrom
folio-file-chooser

Conversation

@dhh

@dhh dhh commented Nov 15, 2026

Copy link
Copy Markdown
Contributor

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.

Open Save
Open, in Pictures with the app's Images filter Save, with the name selected up to its extension

What changes

  • config/xdg-desktop-portal/hyprland-portals.conf prefers 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 ship folio.portal yet, the GTK chooser answers as before. That makes this safe to merge ahead of the package.
  • default/hypr/apps/system.lua tags folio-chooser windows +floating-window, the same treatment the GTK portal gets. They float, centred, at 875×600, the size Folio asks for anyway.
  • A migration adds the FileChooser line under [preferred] in an existing hyprland-portals.conf that 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 own portals.conf is left alone.
  • docs/theming.md says 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 and folio-chooser.desktop. Until that lands, the fallback keeps the GTK chooser.

Checked

  • The migration, run against throwaway homes: Omarchy's previous default config gains the line, a second run skips it, a config that already picks a file chooser and a home with no config are left alone.
  • The portal's 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.
  • The Folio side, on this machine and on a fresh Omarchy VM for Move keybinds to user-level configuration #132, through the real portal frontend.

🤖 Generated with Claude Code

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>
@greptile-apps

greptile-apps Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge; the latest change fixes the linked-config issue without introducing a new actionable problem.

Summary

The PR makes Files the preferred Open and Save dialog, with GTK as the fallback.

  • Other apps get Files for file dialogs, with GTK as fallback.
  • Files’ chooser windows use Omarchy’s floating-window treatment.

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

Comment thread migrations/1794775358.sh Resolved
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant