Skip to content

Open a file from Finder/Explorer #1830

@iansinnott

Description

@iansinnott

Is your feature request related to a problem? Please describe.

No response

Describe the solution you'd like

From the native OS Finder/Explorer the user can open a file in the a wails app. On mac this might mean using the right-click menu and selecting "Open with..." and then a wails app.

If the wails app is registered as the default handler for a specific file type, simply double-clicking on a file from Finder/Explorer should open it in the wails app.

Electron has some prior art here, although an ideal solution for wails/go might look different: https://www.electronjs.org/docs/latest/api/app#event-open-file-macos

Describe alternatives you've considered

No alternatives known other than using something besides Wails.

Additional context

There's also a related discussion: #1829

Wails is currently great for putting a UI on top of a web app or some Go functionality, however, its capabilities would be significantly expanded (IMO) if Wails apps could handle files the same way native apps do. Certain use-cases likely will not be possible otherwise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    TODOThe issue is ready to be developed

    Type

    No type

    Projects

    Status

    🆕 TODO

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions