Is it possible to open a file from Finder in a Wails app? #1829
Unanswered
iansinnott
asked this question in
Q&A
Replies: 1 comment 1 reply
-
There's a ticket for this but can't find it. If you like, open a new one. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
TL;DR: I'm building an app that deals with PDFs and wondering if I can have a PDF open in Wails when double-clicked from Finder (or Explorer, etc on other platforms).
The open file dialog is great for telling wails to open a file. However, if the user double clicks a file I'm not sure how to have wails receive the path or file object and respond.
I suspect I can register my app for use with various file types using a custom
Info.plist
, but even so that wouldn't allow wails to handle the open event.I did some searching around issues / docs and didn't find this info. Please excuse if I overlooked some existing discussion.
Beta Was this translation helpful? Give feedback.
All reactions