Setting Firefox default Home URL by shell script
May 19, 2010I had to automatically change the default home URL (i.e. startup homepage) of Firefox on freshly installed Linux machines and surprisingly that was a pain in the *. If there is an easy way to do this, please let me know. The script runs as root as it finishes the install procedure. What I finally did was:
- run Firefox as user to have FF create the profile dir
- identify the profile dir (which is sick, but whatyagonnado?)
- finally set the URL in user.js via user_pref()
And here is the shell script: set_firefox_default_home_URL