lukebaker.org

lukebaker.org

Firefox Setup

with 2 comments

After updating to Firefox 1.0PR, I re-tooled my Firefox startup script. The script accepts a URL and if there is no Firefox process running, it will start one and go to the URL that was the input. If there already is a Firefox process running it will open the URL in a new tab in the already running Firefox window. Previously, I used it every time I launched Firefox. This is not necessary anymore, now it is only used when I click on links from other applications. This is probably only useful for those using Linux.

I also had to change my userChrome.css file so that I could change the width of my search-bar. Unfortunately, the directions which I had previously used were old and didn’t quite work.

To change the width of the search bar, the following needs to be in you userChrome.css file:

/* Make the Search box flex wider
(in this case 400 pixels wide) */
#search-container {
-moz-box-flex: 400 !important;
}
#searchbar {
-moz-box-flex: 400 !important;
}

And here’s my newly updated startup script:

#!/bin/bash
FF=/usr/local/firefox
url=$1
[ -z $url ] && url=about:blank
## Run Firebird remotely if there's an existing process running...
if [ -x $FF/firefox ] ; then
$FF/firefox -remote 'ping()'
if [ $? -eq 0 ]; then # Already running -> new-tab
$FF/firefox -remote "openURL($url,new-tab)" &
else
$FF/firefox $url &
fi
fi

Written by Luke

September 15th, 2004 at 1:36 pm

Posted in General,mozilla.org

2 Responses to 'Firefox Setup'

Subscribe to comments with RSS or TrackBack to 'Firefox Setup'.

  1. Thanks for the searchbar tip. I’d been too lazy to look that up myself, and since the Googlebar hasn’t updated yet, I was just going to google.com for searches.

    Adam

    20 Sep 04 at 9:09 am

  2. Correction of above: Googlebar has been updated to work with 1.0PR, but they haven’t changed the main page to reflect the change.

    Adam

    20 Sep 04 at 9:25 am

Leave a Reply