Christmas??


For your Christmas enjoyment a script to either run a new instance of Firefox or open a new tab. Point your application browser path to this executable rather than the binary:

Modfied from a script found a while back on mozilla.org

#!/bin/bash
# Jeffrey Robbins - 2005

#Full path to Firefox or Mozilla binary
MOZILLA=/usr/share/firefox/firefox

if ($MOZILLA -remote "ping()"); then
             #Found a running instance, open a new tab
             $MOZILLA -remote "openurl($1, new-tab)" &
else
        #Didn't find a running instance, open a new one
        $MOZILLA $1 &
fi

Don’t forget to chmod this so it is executable!!

Comments are closed.