J'ai adapté le script à mes besoins... merci à Ploum :)
#!/bin/bash
# author - David Patton
# hacked by Ploum
# bidouillé par Nucleos et Moz
startpage="https://linuxfr.org/my/(...)"
cd /usr/local/mozilla
if [[ `ps -e | grep mozilla-bin` ]]; then
echo "Moz est sans doute en marche."
echo "See http://www.mozilla.org/unix/remote.html(...) for -remote commands"
if ! [ $# = 0 ]; then
`./mozilla -remote 'openURL('1ドル',new-tab)'`
elif ! `./mozilla -remote 'openURL('$startpage', new-window)'`; then
echo "Mozilla ne réussit pas à démmarer."
echo "Essai de démarrage comme si Moz n'était pas démmarer :"
`./mozilla 1ドル &`
fi
else
echo "Mozilla n'est pas actuellement en marche."
`./mozilla 1ドル &`
fi
[^] # Re: Mozilla 3.1 -> Profile Manager
Posté par Nucleos . En réponse au journal Mozilla 3.1 -> Profile Manager. Évalué à 1.
#!/bin/bash
# author - David Patton
# hacked by Ploum
# bidouillé par Nucleos et Moz
startpage="https://linuxfr.org/my/(...)"
cd /usr/local/mozilla
if [[ `ps -e | grep mozilla-bin` ]]; then
echo "Moz est sans doute en marche."
echo "See http://www.mozilla.org/unix/remote.html(...) for -remote commands"
if ! [ $# = 0 ]; then
`./mozilla -remote 'openURL('1ドル',new-tab)'`
elif ! `./mozilla -remote 'openURL('$startpage', new-window)'`; then
echo "Mozilla ne réussit pas à démmarer."
echo "Essai de démarrage comme si Moz n'était pas démmarer :"
`./mozilla 1ドル &`
fi
else
echo "Mozilla n'est pas actuellement en marche."
`./mozilla 1ドル &`
fi