kerma / defaultbrowser

Command line tool for getting and setting a default browser (HTTP handler) in macOS
MIT License
314 stars 36 forks source link

Integrated Google Chrome Incognito #18

Closed aletheia7 closed 4 years ago

aletheia7 commented 4 years ago

I use Google Chrome Incognito. Description Link.

It is a small compiled binary that executes an applescript to open Google Chrome in incognito mode. Any pointers on how I can integrate defaultbrowser to run the Google Chrome Incognito.app? defaultbrowser does not see Google Chrome Incognito.app in the listing.

Thank you.

kerma commented 4 years ago

defaultbrowser relies on LSCopyAllHandlersForURLScheme.

According to the docs the problem seems to be on your binary side:

URL handling capability is determined according to the value of the CFBundleURLTypes key in an application’s Info.plist.

You probably need to make the binary to be a "real mac app" with it's Info.plist.

aletheia7 commented 4 years ago

defaultbrowser relies on LSCopyAllHandlersForURLScheme.

According to the docs the problem seems to be on your binary side:

URL handling capability is determined according to the value of the CFBundleURLTypes key in an application’s Info.plist.

You probably need to make the binary to be a "real mac app" with it's Info.plist.

Thank you for your help. The developer of Google Chrome Incognito.app enhanced the app to work with CFBundleURLTypes.

New Version: Google Chrome Incognito