-
-
Notifications
You must be signed in to change notification settings - Fork 610
Description
Specification
- pywebview version: 3.3.1
- platform / version: macOS 0.15.5 and Windows 10
Description
First off. This is an amazing project. Thank you for creating pywebview!!
An event handler for when a file is opened for a specific file extension/type in macOS I believe it's CFBundleTypeExtensions in the plist. I'm able to get pywebview to open using this setting but unable to handle the file being opened. Here's the plist argument I'm passing in setup.py:
OPTIONS = {..
'plist': {
'CFBundleName': "MyApp",
'CFBundleDisplayName': "MyApp",
'CFBundleGetInfoString': "App it Up",
'CFBundleIdentifier': "com.example.app",
'CFBundleVersion': "0.1.0",
"CFBundleTypeRole": "editor",
"CFBundleTypeExtensions": ["appy-mc-apperson"],
'CFBundleShortVersionString': "0.1.0",
'NSHumanReadableCopyright': u"Copyright © 2020, Justin Mitchel, All Rights Reserved"
}
}
The appy-mc-apperson represents something like my-project.appy-mc-apperson to, ideally, re-open our application and re-load the project. For context, .appy-mc-apperson is an arbitrary extension I made up for this post.
This works in Electron fairly simply as you can see here under fileAssociations. This would allow pywebview apps to resume projects that are being worked on which would be key for several projects I'm working on.
Practicalities
-YES. Happy to help however I can.
-YES. I am prepared to support this issue financially within reason of course. I'm trying not to use Electron as much since it's so bloated especially for tiny projects.