Created
March 20, 2010 22:42
-
-
Save programaker/338961 to your computer and use it in GitHub Desktop.
How to make Adobe Air applications use the system default browser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #1 - Open the file "/opt/Adobe AIR/Versions/1.0/libCore.so". | |
| sudo vi /opt/Adobe AIR/Versions/1.0/libCore.so | |
| #2 - In vi, go to the line 16104 with the command ":16104". | |
| #3 - Find the word "firefox" (if it was your previous default browser) and replace it with "browser". | |
| # The word "browser" is not a random choice! It was chosen because it has the same size of the "firefox" word. | |
| # The size matters because we are editing a binary file and words with different sizes will cause segmentation fault # errors! | |
| #4 - Save the file and exit with the command ":wq". | |
| #5 - Go to a folder in the path (like /usr/bin, /usr/local/bin, etc) and create a new file called "browser". | |
| #6 - copy this into the file (if google chrome is your new default browser). | |
| #! /bin/bash | |
| /opt/google/chrome/google-chrome $1 | |
| #7 - Give execution permision to the "browser" file and you're done! | |
| # The next time you change the default browser, just change the "browser" script! | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment