raven-reader icon indicating copy to clipboard operation
raven-reader copied to clipboard

Open subscribe dialog when passed feed URLs via URI scheme on macOS

Open einkoro opened this issue 4 years ago • 0 comments

While Raven Reader registers the URI Scheme ravenreader:// in launch services it does not appear to support opening the subscribe dialog when passed a RSS feed URL. Generally most macOS news readers will accept a feed URL and open the subscribe dialog with the URL populated if you were to, for example, open ravenreader:https://example.org/rss/feed/ with NSWorkspace.shared.open(url) or alternatively using the bundle ID to open a feed URL via NSWorkspace.shared.open([url], withAppBundleIdentifier: ...).

Would it be possible to see support for this added? Swift examples are available here but I am not sure how you go about this with electron applications: https://developer.apple.com/documentation/xcode/defining-a-custom-url-scheme-for-your-app

Additionally while it registers itself a unique URI scheme it does not register as a handler for the feed URI scheme in Launch Services so there isn't an easy way to set it as the default news reader on macOS if support was added.

einkoro avatar Jan 31 '22 03:01 einkoro