Comment 108 for bug 1425972

Revision history for this message
In , Yisheng-dev (yisheng-dev) wrote :

I wish I had found this earlier, but my code breaking with the last update seems to have 'informed' me... :( I too have a big problem with removing this.

Any suggestions in this new world on how the following might be implemented? Essentially part of a bigger program that gives a menu of profiles to invoke, creates a new window if it's the first instance of that profile, or adds on if not (to get around 'firefox is already running' error). Using -no-remote doesn't work and all new instances now either fail or open in the first profile called with other variations tried.

1) firefox -P generic1 -remote "ping()"
   if [ ! $? == 0 ]; then
 nohup firefox -P generic1 -new-instance $URL 2>&1 >/dev/null &
   else
 nohup firefox -P generic1 -remote "openurl($URL,new-window)" 2>&1>/dev/null &
   fi
 ;;