Do you like ~kolideagent~ kolide as the protocol name? Do you have another idea?
Notes:
This does not work if the actor runs in launcher root instead of launcher desktop.
This required /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -seed to force macOS to recognizing the custom binding. I think this was something weird with my test setup -- when others tested, they didn't need this command for the scheme to work. But it's possible that this is something we'll need to account for during launcher startup.
Questions for code review:
kolide
as the protocol name? Do you have another idea?Notes:
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -seed
to force macOS to recognizing the custom binding. I think this was something weird with my test setup -- when others tested, they didn't need this command for the scheme to work. But it's possible that this is something we'll need to account for during launcher startup.Excerpt from example log:
Screenshot of permission popup
Useful links
* https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app * https://stackoverflow.com/questions/77443348/javascript-invoke-custom-protocol