Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MacOS] Handling CFBundleURLSchemes #653

Closed
elpiel opened this issue Dec 23, 2022 · 2 comments
Closed

[MacOS] Handling CFBundleURLSchemes #653

elpiel opened this issue Dec 23, 2022 · 2 comments

Comments

@elpiel
Copy link

elpiel commented Dec 23, 2022

From our extend research in the past days we realised that it's not possible with tao nor cocoa, at this point, to add an event callback for handling CFBundleURLSchemes.
fruitbasket does have support to add such callbacks, however, I'm not familiar enough with MacOS and it seems that the core loop should be in the main thread and we can't run 2 event loops (1 from tao and 1 from fruitbasket) to add this support in our application.

What would be a good way to add support to tao for this platform-specific case?

@elpiel elpiel changed the title Handling CFBundleURLSchemes Handling CFBundleURLSchemes (macOS) Dec 23, 2022
@elpiel elpiel changed the title Handling CFBundleURLSchemes (macOS) Handling CFBundleURLSchemes (MacOS) Dec 23, 2022
@elpiel elpiel changed the title Handling CFBundleURLSchemes (MacOS) [MacOS] Handling CFBundleURLSchemes Dec 23, 2022
@FabianLars
Copy link
Member

This is not a simple question. winit tried to find a way for years at this point. Most relevant discussion/tracking issue: rust-windowing/winit#2120

tao will use whatever winit will use (we plan to deprecate tao in favor of winit when it's possible), so if you want to bring this forward i'd suggest taking part of the discussion over there.

@elpiel
Copy link
Author

elpiel commented Dec 29, 2022

On low level, registering a handler is callback based and does not depend on the event loop, we used fruitbasket to create an App without running the event loop but registering our callback for handling the custom URL scheme.

@elpiel elpiel closed this as completed Dec 29, 2022
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

No branches or pull requests

2 participants