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

Support custom URI handler for clickable links in Desktop app in MacOS #5580

Closed
davide-baldo opened this issue Aug 10, 2023 · 0 comments
Closed
Assignees

Comments

@davide-baldo
Copy link
Member

davide-baldo commented Aug 10, 2023

Blocking: #5577

In MacOs it's pretty easy to declare the support for custom URLs, just add this snipped to the pInfo file of the application. However, there is non trivial to intercept the event, as there is a multi-year ongoing discussion about these events, maybe by mapping the specific event rather than allowing any arbitrary event would be easier.

<key>CFBundleURLTypes</key>
<array>
        <dict>
                <key>CFBundleTypeRole</key>
                <string>Editor</string>
                <key>CFBundleURLName</key>
                <string>io.ockam</string>
                <key>CFBundleURLSchemes</key>
                <array>
                        <string>ockam</string>
                        <string>ockam-invite</string>
                </array>
        </dict>
</array>

And register the App as handler with:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -f /Applications/Ockam\ Desktop.app/

And confirm the registration with:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -dump URLSchemeBinding | grep ockam

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