This is part 1 in a series which explores Radio's problems in using the Mozilla Firebird browser on Radio startup and some possible solutions.
Parts in the series:
Part 1 - Radio uses the default application to open ".htm" files
Part 2 - Radio does not parse the Mozilla Firebird command line correctly.
Part 3 - Radio does not use the correct DDE name to "talk" to Mozilla Firebird.
Part 1 - Radio uses the default application to open ".htm" files.
Radio stores the command line to the .exe of the browser it will use in radio.root at user.webBrowser.winDefaultBrowserApp. The user can change this value while Radio is running, but this change is lost when Radio is restarted.
This is because on every startup, Radio reads the Windows registry and gets the command line of the application registered to open ".htm" files. Radio then overwrites any value stored in user.webBrowser.winDefaultBrowserApp with the command line read from the registry.
The user has a number of ways to resolve this issue:
A. Set Mozilla Firebird to be the default Windows browser.
In Mozilla Firebird, on the menu, click Tools, Options. Click on the "General" tab/button on the left. Click on the "Set Default Browser" button.
This option sets Mozilla Firebird to be the default application to open many different file types besides ".htm" files. If the user does currently wish to set Mozilla Firebird to be the Windows default web browser, this will not be an acceptable solution.
B. Set Mozilla Firebird to be the default application to open ".htm" files.
Edit the file type for ".htm" files in Windows Explorer and set Mozilla Firebird to be the default application to open just that specific file type.
In Windows Explorer (Windows XP), on the menu, click Tools, Folder Options. Click on the "File Types" tab. Scroll down through the list of extensions until you find "HTM". Click on "HTM" to select it. Then click on the "Change" button and set Mozilla Firebird as the default application. Or click on the "Advanced" button, select the "open" action, click the "Edit" button, and set Mozilla Firebird as the default application.
C. Use a startup script to set the command line of the browser the user wishes to use.
Immediately after Radio reads the Windows registry and updates user.webBrowser.winDefaultBrowserApp, Radio then does a callback to run all user startup scripts located in user.callbacks.startup.
If a script that changes the value of user.webBrowser.winDefaultBrowserApp (or the address of such a script) is added to user.callbacks.startup, the value written by this script will be the one Radio uses to open the Desktop Website on startup. Since this value will be written last, it will be the value that stays.
The script doesn't have to be complicated at all. Add a new script under user.callbacks.startup and call the script "setDeafultBrowser". In the script window, use the following code:
on setDefaultBrowser () if (system.environment.isWindows) user.webBrowser.winDefaultBrowserApp = "C:\\Program Files\\MozillaFirebird\\MozillaFirebird.exe" bundle // test setDefaultBrowser ()
The backslashes in the path name do require double backslash.
Click the Compile button after the code has been entered. If you want to set the default browser without having to restart Radio, click the Run button.
When Radio is restarted, Radio will still read the registry and overwrite the value stored in user.webBrowser.winDefaultBrowserApp, but now this script will come in right after it and change it back.
Each of these options has its advantages and disadvantages; use whatever option you are most comfortable with and bests suits your needs.
Continue to Part 2.....