stuartcryan

DefaultBrowser - Change your default web browser easily from within Alfred - v1.1 Update Released September 10, 2015

9 posts in this topic

Change your default web browser quickly and easily from within Alfred.

Simple yet effective, this workflow enablea you to easily change your default browser. The official repository is located on Github --> https://github.com/stuartcryan/defaultbrowser-alfred-workflow where any issues can be logged on the issue tracker. I have also put this workflow on Packal.

 


Update Version 1.2 released September 10, 2015:

What has changed:

  • Feature: Support additional browsers - added FirefoxDeveloperEdition and Webkit Nightly Build

Update Version 1.1 released August 8, 2015:

What has changed:

  • Feature: Support additional browsers - added Chromium, Canary and SeaMonkey
  • Feature: Only show installed browsers
  • Feature: Indicate which browser is the current default
  • Feature: Added hotkey assignments (to launch workflow, launch with "chrome", and launch with "safari")
  • Improvement: Renamed description in Alfred to simply "Default Browser"
  • Improvement: Improved failure feedback
  • Improvement: Major code refactor to remove duplication and speed up the workflow
  • Improvement: Added an icon to the workflow
  • Improvement: defaultbrowser binary has been updated to better support integrating. This code has been put into a pull request for the official publication of defaultbrowser.


Workflow Details:

A simple workflow to allow quick and easy changing of the default browser on OSX using a workflow in Alfred.

Installation

  1. Download the .alfredworkflow file or you can get it on Packal.
  2. Run to import into Alfred

Donations

This workflow represents many hours effort of development, testing and rework. The images that have been licensed for this workflow from DepositPhotos also needed a bit of my moolah. So if you love the workflow, and get use out of it every day, if you would like to donate as a thank you to buy me more caffeine giving Diet Coke, some Cake, or to put towards a shiny new gadget you can donate to me via Paypal.

 

donate.png

 

You should also consider getting into contact with Margus Kerma and donating to Margus also for the work that has bene put into the defaultbrowser binary.

Usage

  • db < browser >
  • Note - if you try to set the default browser that is already active as the default you will just get a notification.

Browsers currently supported:

  • Chrome
  • Firefox
  • Opera
  • Safari
  • Chromium - New in V1.1
  • Canary - New in V1.1
  • SeaMonkey - New in V1.1

Screenshots

default_browser_screenshot_1.png

 

default_browser_screenshot_2.png

 

default_browser3.jpg

 

default_browser_screenshot_4.png

 

Troubleshooting

If you are finding that you are seeing browsers listed that you have installed previously but no longer have on your system you will need to clear out all your default handlers.

Unfortunately, this is the only solution I have found to date, you should research it in depth before you use it. The following command will re-initialise all the "handlers" OSX knows about and will therefore resolve the issue, it will also likely require you to set up all your custom file associations again.

In other words... you do this at your own risk, I do not support this in any way shape or form...

The command you will need to run on the terminal is: lsregister -kill

 

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Change Log

  • Version 1.2 - Feature Release
    • Feature: Support additional browsers - added FirefoxDeveloperEdition and Webkit Nightly Build 
  • Version 1.1 - Feature Release
    • Feature: Support additional browsers - added Chromium, Canary and SeaMonkey
    • Feature: Only show installed browsers
    • Feature: Indicate which browser is the current default
    • Feature: Added hotkey assignments (to launch workflow, launch with "chrome", and launch with "safari")
    • Improvement: Renamed description in Alfred to simply "Default Browser"
    • Improvement: Improved failure feedback
    • Improvement: Major code refactor to remove duplication and speed up the workflow
    • Improvement: Added an icon to the workflow
    • Improvement: defaultbrowser binary has been updated to better support integrating. This code has been put into a pull request for the official publication of defaultbrowser.
  • Version 1.0 - Initial Release

Credits

defaultbrowser binary for OSX has been created by Margus Kerma.

  • Margus has been kind enough to permit me to include the binary for defaultbrowser as part of this workflow to make distribution significantly easier.
  • For any issues with the defaultbrowser binary please log these to the official DefaultBrowser Issue Tracker.

DefaultBrowser Alfred workflow created by Stuart Ryan. If you would like to get into contact you can do so via:

License

With the exception of the workflow logo, this Alfred Workflow is provided free of charge under the GNU GENERAL PUBLIC LICENSE Version 2 June 1991.

The workflow logo is licensed only for use in this workflow and must be changed if the workflow is forked in the future.

The workflow logo has been licensed from DepositPhotos to Stuart Ryan.

Edited by stuartcryan
thec13 and vanderholm like this

Share this post


Link to post

I am happy to say I have pulled together a major update for everyone. I hope there are others out there getting use out of this, if not... I have done a lot of updates for my self :D *cackles*.

 

Changes are as follows:

  • Feature: Support additional browsers - added Chromium, Canary and SeaMonkey
  • Feature: Only show installed browsers
  • Feature: Indicate which browser is the current default
  • Feature: Added hotkey assignments (to launch workflow, launch with "chrome", and launch with "safari")
  • Improvement: Renamed description in Alfred to simply "Default Browser"
  • Improvement: Improved failure feedback
  • Improvement: Major code refactor to remove duplication and speed up the workflow
  • Improvement: Added an icon to the workflow
  • Improvement: defaultbrowser binary has been updated to better support integrating. This code has been put into a pull request for the official publication of defaultbrowser.

Share this post


Link to post
On 15/09/2016 at 3:14 AM, James Hobson said:

@stuartcryanReally useful script - cheers for sharing.

Still working well with Alfred v3.1

Awesome to hear :) I have to say it is the most easiest one that I maintain LOL.

Share this post


Link to post
On 27/05/2016 at 7:42 PM, ikari said:

Just signed up to congratulate you for this fantastic workflow!

 

Regars.

Thank you kindly! (and apologies for the delayed reply).

Stuart

Share this post


Link to post

Thanks for this great workflow! It works like a charm. :)

I was wondering if it was possible to set the default browser without having to validate with the popup?

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now