Lord-Kamina / SwiftDefaultApps

Replacement for RCDefaultApps, written in Swift.
Other
1.43k stars 62 forks source link

Ventura — changing a URL scheme handler has no effect #72

Open icanzilb opened 1 year ago

icanzilb commented 1 year ago

I've added a new app to the list of apps to handle a given URL scheme and I got the alert box saying the handler for that URL scheme was successfully changed. The list looks a bit awkward, adding it here for completeness:

image

However, opening a URL with the given scheme from Terminal does not use the newly set default app.

I'm not sure if that's a bug due to the UI glitch or is the preference pane just not working on Ventura?

SeanHansell commented 1 year ago

CLI similarly doesn't work in Ventura. Setting the default handler for a URL scheme doesn't stick. It reverts after a few seconds.

% swda setHandler --URL tel --app /Applications/RingCentral.app
SwiftDefaultApps SUCCESS: Default handler has succesfully changed to com.ringcentral.glip
% swda getHandler --URL tel                                    
/System/Applications/FaceTime.app
Lord-Kamina commented 11 months ago

This might be fixed by replacing the deprecated LaunchServices methods for the new NSWorkspace api, which is a WIP.