PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : Firefox Startup Script v0.8



gladiac
09.02.04, 14:15
Ich hab mein Startup Script aktualisiert


Linux Startup Script for Mozilla Firefox (Bash Script).

Features:
* If a new Firefox is requested when there is already a running Firebird, the script just tells the currently running Mozilla to open a new window.
* Viewing local html files is easier (you can type "firebird ./homepage.html" rather than "firebird file:///home/gladiac/Documents/linux-clan.html").
* Works together with Mozilla Thunderbird
http://www.mozilla.org/projects/thunderbird/linuxurls.html

Download:
http://www.cynapses.org/?show=codings


gladiac

steve-e
01.05.04, 10:55
Hi
das Script funktionier eigentlich recht gut, zumindest die Grundfunktion. Doch hab ich noch Probleme mit dem öffnen von Mails auf Firefox heraus, sowie das öffnen von Links aus Thunderbird heraus. Es passiert nie etwas, wenn ich auf Links klicke oder auf eine E-mail adresse.

Meine firefox script:


FIREFOX_HOME=/usr/local/bin/firefox
OPEN_MODE=new-tab
ORIGIN_DIR=`pwd`

export FIREFOX_HOME=$FIREFOX_HOME
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$FIREFOX_HOME

# get URL to load
URL=$1; [ -z $URL ] && URL=about:blank

# check if we're trying to open a file
if [ -e "$URL" ];
then
if [ -e "./$URL" ];
then
URL="file://localhost$ORIGIN_DIR/$URL"
else
URL="file://localhost$URL"
fi
fi

# try xremote first
$FIREFOX_HOME/mozilla-xremote-client "openURL($URL, $OPEN_MODE)" && exit 0

# if xremote failed, then launch the browser
exec $FIREFOX_HOME/firefox $URL


Meine firefox prefs.js

user_pref("network.protocol-handler.app.mailto", "/usr/local/bin/thunderbird/thunderbird.sh");
Mein Thunderbird script:


THUNDERBIRD_PATH="/usr/local/bin/thunderbird"

export MOZILLA_FIVE_HOME=$THUNDERBIRD_PATH

MAILTO=`echo $@ | awk 'BEGIN{FS=":"} $1 ~ /mailto/ {print $2}'`

if [ -z "`ps x | grep \"[0-9] ${THUNDERBIRD_PATH}/thunderbird-bin\"`" ]; then
# No thunderbird running
${THUNDERBIRD_PATH}/thunderbird "$@"
else
# thunderbird running - raise window
${THUNDERBIRD_PATH}/thunderbird -remote "xfeDoCommand(openInbox)"
fi

if [ -n "$MAILTO" ]; then
${THUNDERBIRD_PATH}/thunderbird -remote "mailto($MAILTO)"
fi

Meine Thunderbird user.js

user_pref("network.protocol-handler.app.http", "/usr/local/bin/firefox/firefox.sh");
user_pref("network.protocol-handler.app.https", "/usr/local/bin/firefox/firefox.sh");
user_pref("network.protocol-handler.app.ftp", "/usr/local/bin/firefox/firefox.sh");

gladiac
01.05.04, 11:40
Ich hatte auch mal das Problem das es nicht funktionierte, da half nur löschen des ~/.firefox Verzeichnisses und neu aufsetzen.

steve-e
01.05.04, 17:23
hab mein /.phoenix Verzeichnis mal testweise umbennant, aber es hat leider nicht funktioniert :-/

Valentin
01.05.04, 17:54
Also das Problem hab ich schon ewig ;)

Nur bei mir stürzt thunderbird ab wenn ich dort auf eine url klicke und firefox startet :ugly: :ugly:

core
02.05.04, 04:24
If a new Firefox is requested when there is already a running Firebird, the script just tells the currently running Mozilla to open a new window.
:confused: Was denn nu? :ugly:

steve-e
02.05.04, 07:18
Wo ist das Problem?
Ist bereits eine Instanz von Firefox am laufen, wenn eine weitere aufgerufen wird, dann wird nicht der Profielmanager sondern ein neuer Tab in Firefox geöffnet.

core
02.05.04, 09:04
lies den Satz noch einmal genau ..

steve-e
02.05.04, 10:35
verdammter Paragraphenreiter :ugly:

zbled
02.05.04, 17:36
bin ich zu blind? wo findet man denn nun dieses script?

gladiac
02.05.04, 21:53
bin ich zu blind? wo findet man denn nun dieses script?

Da wo Download steht....