• [^] # Re: firefox & thunderbird peu coopératifs

    Posté par . En réponse au journal firefox & thunderbird peu coopératifs. Évalué à 1.

    Merci gnujsa.

    Grâce à tes infos j'ai trouvé un script nickel qui lance firefox s'il ne l'est pas et sinon ouvre le lien dans un nouvel onglet.

    #!/bin/sh

    MOZILLA="/usr/local/firefox/firefox"
    if $MOZILLA -remote "ping()" 2>/dev/null
    then
    echo "Mozilla already launch"
    location=",new-tab"
    exec $MOZILLA -remote "openURL(1ドル$location)"
    else
    exec $MOZILLA "$@"
    fi
    exit 1