Skip to content

New file openers do not appear until Preferences is reopened #588

Closed

Description

@nickhamze

If an app registers a valid file opener while Preferences is already open, the public registry updates but the File Associations dropdown does not. The new choice appears only after closing and reopening Preferences.

This matters for extensions that load lazily: the app is ready to open the file, but the setting where someone chooses it still looks as if it does not exist.

How to reproduce

  1. Open Preferences → File Associations.
  2. Note the choices for Posts.
  3. Register another Post opener through the public Files API.
  4. Confirm the opener registry now contains the new app.
  5. Check the mounted Post dropdown; it still has the old list.
  6. Close and reopen Preferences; the new app appears.

What should happen

The mounted File Associations tab should subscribe to opener-registry changes and refresh only the affected choices without losing the current selection.

Where I would look

src/desktop-files/openers.ts already provides subscribeOpeners(), but src/desktop-files/settings-tab.ts does not use it.

The File Associations panel before a late opener can appear

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions