Set Chrome as Default Browser from Command Line
Whenever I see a desktop GUI to accomplish a given web-related task, I'm dying to know the underlying operating system interaction to accomplish the same feat. Many of the GUIs I use are just a front for a command line utility for that more experienced developers would use.
I set out to find the command line script for setting the system's default browser on OS X but apparently there isn't one, but I did find a command line script for setting Chrome as the default browser:
open -a "Google Chrome" --args --make-default-browser
The script above opens Google Chrome and asks for confirmation that you'd like to make it the default browser. I'm not aware of what command line scripts would make other browsers the default browser, and I'm a bit annoyed that there isn't a single script to do so!
CSS cubes really showcase what CSS has become over the years, evolving from simple color and dimension directives to a language capable of creating deep, creative visuals. Add animation and you've got something really neat. Unfortunately each CSS cube tutorial I've read is a bit...
Client-side APIs on mobile and desktop devices are quickly providing the same APIs. Of course our mobile devices got access to some of these APIs first, but those APIs are slowly making their way to the desktop. One of those APIs is the getUserMedia API...
As I continue to learn jQuery, I think it's important that I begin by porting over scripts I've created using MooTools. One of those scripts is my Color Palette Generator script, which debuted on Eric Wendelin's blog. For those of you that...
Theming has become a big part of the Web 2.0 revolution. Luckily, so too has a higher regard for semantics and CSS standards. If you build your pages using good XHTML code, changing a CSS file can make your website look completely different.
Too bad that still prompts you to accept the make default browser action/choice. That kind of detracts from the ability to fully automate system provisioning for instance. :(
Or simply go here:
OS X Yosemite:
1 – From the Apple menu, choose System Preferences, then click General.
2 – Click the “Default web browser” pop-up menu and choose a web browser, like Safari.
OS X Mavericks or earlier:
1 – Open Safari from the Applications folder, Dock, or Launchpad.
2 – From the Safari menu, choose Preferences.
3 – Click the General button.
4 – Choose a web browser from the “Default web browser” pop-up menu, like Safari.