Macos custom url schemes - retrieving parameters?
⚓ Rust 📅 2026-02-24 👤 surdeus 👁️ 1On macos, you can register custom URL schemes to create links that open an application: Defining a custom URL scheme for your app | Apple Developer Documentation
Meaning you can use link my-application:// in the browser and it will open your application.
That in itself is fairly easy and I found out that the bundler that I use (cargo-bundle) already allows configuring that out-of-the-box.
The harder part seems to be getting parameters from the URL in the application itself. They're seemingly not passed as command line arguments.
The apple doc above gives an example on how to retrieve them with objective-c.
Does anyone have pointers on how the same thing could be achieved in Rust, in the context of an egui/winit application?
Best,
n
3 posts - 3 participants
🏷️ Rust_feed