This tries a few different methods to get the application bundle path (*.app). Should be generic enough to reuse for other browsers, e.g. for Firefox get_bundle_path_darwin("org.mozilla.firefox", "Firefox.app"). The additional logic for Chrome (defaults read) only applies to Chrome though.
This tries a few different methods to get the application bundle path (
*.app
). Should be generic enough to reuse for other browsers, e.g. for Firefoxget_bundle_path_darwin("org.mozilla.firefox", "Firefox.app")
. The additional logic for Chrome (defaults read
) only applies to Chrome though.