[home]

Setting Firefox default Home URL by shell script

May 19, 2010

I 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

Comments

[home]

Leave a Comment

Line and paragraph breaks automatic, HTML allowed: <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <code> <em> <i> <strike> <strong>



Put the word storzblog somewhere in your comment, this is my spam-protection. :)

[home]