Il y a effectivement deux Firefox sur ma machine car j'utilise une application récente et très chère commercialisée par l'éditeur leader des bases de données qui...... ne supporte pas Firefox 3.x et exige Firefox 2.x mais mon problème ne vient pas de là.
Quand je lance directement Firefox, le ps suggéré par pmarion me retourne :
azerty 6089 1 0 12:31 ? 00:00:00 /bin/sh /usr/lib/firefox-3.0.7/run-mozilla.sh /usr/lib/firefox-3.0.7/firefox
azerty 6106 6089 6 12:31 ? 00:00:01 /usr/lib/firefox-3.0.7/firefox
En revanche quand je clique sur un lien dans Thunderbird :
Et si je lance firefox dans une console
$ firefox &
[1] 11249
$ ps -ef | grep firefox
azerty 11249 11027 0 12:54 pts/1 00:00:00 /bin/sh /usr/lib/firefox-3.0.7/run-mozilla.sh /usr/lib/firefox-3.0.7/firefox
azerty 11266 11249 18 12:54 pts/1 00:00:01 /usr/lib/firefox-3.0.7/firefox
Dans la configuration de Thunderbird j'ai les deux valeurs suivantes :
network.protocol-handler.app.http = /usr/lib/thunderbird-2.0.0.21/open-browser.sh
network.protocol-handler.app.https = /usr/lib/thunderbird-2.0.0.21/open-browser.sh
Le script /usr/lib/thunderbird-2.0.0.21/open-browser.sh contenant :
#!/bin/bash
## Copyright (C) 2004 Warren Togami <wtogami@redhat.com>
## Contributors: David Hill <djh[at]ii.net>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# open-browser.sh for MozillaThunderbird
# Release 5
#
# This script is called by MozillaThunderbird in order to launch the web
# browser specified in gconf key /desktop/gnome/url-handlers/http/command
#
# Exit with Error Message
function error_exit() {
echo "$1"
if [ -a /usr/bin/zenity ]; then
/usr/bin/zenity --error --text="$1"
else
xmessage "$1" &
fi
exit 1
}
# No URL specified so set to blank
url=$1
if [ -z $url ]; then
url=about:blank
fi
# Use gnome-open if it exists (Gnome 2.6+ only)
if [ -f /usr/bin/gnome-open ]; then
OUTPUT="$(/usr/bin/gnome-open "$url" 2>&1)"
if [ $? -ne 0 ]; then
error_exit "$OUTPUT"
fi
exit 0
fi
# Pull key from gconf, remove %s or "%s", trim leading & trailing spaces
GCONF=$(gconftool-2 -g /desktop/gnome/url-handlers/http/command 2>/dev/null | sed -e 's/%s//; s/\"\"//; s/^\ *//; s/\ *$//')
NEEDTERM=$(gconftool-2 -g /desktop/gnome/url-handlers/http/need-terminal 2>/dev/null | sed -e 's/^\ *//; s/\ *$//')
# Check if browser really exists
which $GCONF 2> /dev/null > /dev/null
if [ $? -ne 0 ]; then
error_exit "ERROR: The browser $GCONF specified in Preferences -> Preferred Applications does not exist."
fi
# Check if text-mode browser
if [ "$NEEDTERM" == "true" ]; then
PREFTERM=$(gconftool-2 -g /desktop/gnome/applications/terminal/exec 2>/dev/null | sed -e 's/^\ *//; s/\ *$//')
TERMARGS=$(gconftool-2 -g /desktop/gnome/applications/terminal/exec_arg 2>/dev/null | sed -e 's/^\ *//; s/\ *$//')
# Check if terminal exists
which $PREFTERM 2> /dev/null > /dev/null
if [ $? -ne 0 ]; then
error_exit "ERROR: The terminal $GCONF specified in Preferences -> Preferred Applications does not exist."
fi
# Execute
exec $PREFTERM $TERMARGS $GCONF "$url"
fi
exec $GCONF "$url"
La clé /desktop/gnome/url-handlers/http contenant /usr/lib/firefox-3.0.7/firefox "%s" (idem pour la clé https)
EDIT :
Dans la configuration de Thunderbird, j'ai remplacé /usr/lib/thunderbird-2.0.0.21/open-browser.sh par firefox et ça fonctionne nickel.
Merci pour votre aide.
EDIT 2 :
Le script /usr/lib/thunderbird-2.0.0.21/open-browser.sh contient :
# Use gnome-open if it exists (Gnome 2.6+ only)
if [ -f /usr/bin/gnome-open ]; then
OUTPUT="$(/usr/bin/gnome-open "$url" 2>&1)"
if [ $? -ne 0 ]; then
error_exit "$OUTPUT"
fi
exit 0
fi
L'ouverture de l'URL se fait donc par gnome-open.
J'ai donc fait le test dans une console :
Dans ce cas, firefox est lancé sans passer par /usr/lib/firefox-3.0.7/run-mozilla.sh et les plugins ne sont donc pas chargés.