kerma / defaultbrowser Goto Github PK
View Code? Open in Web Editor NEWCommand line tool for getting and setting a default browser (HTTP handler) in macOS
License: MIT License
Command line tool for getting and setting a default browser (HTTP handler) in macOS
License: MIT License
Ever since I updated to macOS Catalina (currently at 10.15.2 (19C57)
) defaultbrowser
stopped detecting Chrome if it's the currently active browser. It broke a script I use to toggle between Chrome (which I use at work) & Firefox (which I use at home) as a default browser.
If Firefox is the default, I get this:
$ defaultbrowser
opera
gif-brewery-3
torbrowser
beta
* firefox
console
canary
dev
firefoxdeveloperedition
nightly
chrome
browser
iterm2
desktop
chromium
vivaldi
safari
27ef764e1843433bb31581d42d97c90c
safaritechnologypreview
However, if Chrome is the default, I get this:
$ defaultbrowser
opera
gif-brewery-3
chrome
beta
torbrowser
console
canary
dev
firefoxdeveloperedition
nightly
firefox
browser
iterm2
desktop
chromium
vivaldi
safari
27ef764e1843433bb31581d42d97c90c
safaritechnologypreview
Would love to have this browser supported! Haven't tested it but also Webkit nightlies too!
Thanks for the extension.
There has been very little activity.
There is a nice PR related to Chrome (that probably won't fix my Orion issues, but still).
I am just wondering if I should make alternate plans, or try to continue using this.
It is a great tool!!!
This utility is useful. It would be nice to have convenient installation of it through homebrew. A formula should be quite easy to write.
I would like to add Brave as an option to change default browsers.
I found the list of acceptable browsers following links in the readme and it looks like Brave is not on the list.
I was trying to get around the new and annoying "Do you want to keep your default browser 'x' or keep using 'x'?" dialog window that was introduced in OS X Yosemite:
When I execute the following command "defaultbrowser -set safari" or "defaultbrowser -set chrome", I get this error along with the pictured dialog box:
Setting a new default browser failed
Do you know if your tool will be able to bypass the new dialog window at some point?
Thanks,
Morgan
Just wanted to let you know that the project, as is, doesn't compile under 10.6 but with a couple of changes it works fine.
See
http://apple.stackexchange.com/a/144669/55365
Also wanted to point out that the code only changes HTTP handler and not HTTPS which I'd expect most people would want as well.
Thx.
I have tried to use the defaultbrowser, but when trying to set safari as default it just show "Safari is not available as an HTTP handler" Running Big sur 11.4
Hi Margus,
I am putting together an Alfred workflow that I would like to use your defaultbrowser program in. The simplest method to put this together is to include the binary in with the Alfred workflow rather than writing a series of scripts to try to download it/put it in the right location etc etc.
Would you please permit me to create an Alfred Workflow (http://alfredapp.com) providing that I put the attribution to yourself in the README files for the workflow detailing the supporting program you have written?
Many thanks
Stuart
The make install
target for this program does not ensure that the bin
directory which it installs to is actually there. This led to a complaint from a homebrew maintainer, saying that this should be fixed here. It should be as simple as adding this:
install:
mkdir -p $(PREFIX)/bin # add this
cp $(BIN) $(PREFIX)/bin/
I'd like to have a CLI option to show the list of available choices
Hey
Is it possible for the script to detect the new browser 'arc' too?
I notice it does not recognise it in the returned list.
I get these ones;
iterm2
chrome
* safari
b99b77c39738484f8a5516125745b0d7
browser
torbrowser
console
firefox
Kind regards
Jonas
Hi,
Is there an option to make Arc browser the default browser ?
Regards,
sw
I wanted to use this in a python script so I was hoping to find a silent way to change my default browser, without the annoying pop-up.
I tried using sudo defaultbrowser -set <browser>
but it doesn't set the browser in that case and it's probably a bad idea too.
Is the precompiled version available anywhere? otherwise I suggest using the "Releases" section in github
It would be great to be able to add this to a shell script and have a way defaultbrowser wait until the dialog box has been closed before continuing on.
ie:
defaultbrowser firefox &&next item&&defaultbrowser chrome
Thanks in advance.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.