Skip to content

Latest commit

 

History

History
20 lines (11 loc) · 747 Bytes

File metadata and controls

20 lines (11 loc) · 747 Bytes

DefaultBrowser

DefaultBrowser is a demo SwiftUI app for changing default browser on macOS.

Note! DefaultBrowser displays installed browsers that can be found on the included incomplete list of common macOS browsers (DefaultBrowser/Resources/browsers.json).

App

Requirements

  • Minimum macOS version: 10.15

Launch Services

DefaultBrowser uses Launch Services API for changing default browser and modifies http and https URL scheme handlers.

Deprecation warnings

  • 'LSCopyDefaultHandlerForURLScheme' was deprecated in macOS 10.15: Use LSCopyDefaultApplicationURLForURL() instead.
  • 'LSCopyAllHandlersForURLScheme' was deprecated in macOS 10.15: Use LSCopyApplicationURLsForURL() instead.