#!/bin/sh if [ -n $1 ]; then P=$1; else P=default; fi if [ "$P" = "default" ]; then path="/home/eigenlambda/.mozilla/firefox/th1dl8ip.Default User/.parentlock"; appid="firefox"; fi if [ "$P" = "temp" ]; then path="/home/eigenlambda/.mozilla/firefox/xz6yfl1g.temp/.parentlock" appid="firefox--temp" fi if [ "$P" = "p" ]; then path="/home/eigenlambda/.mozilla/firefox/cna4oobf.p/.parentlock" appid="firefox--p" fi if ps ax | grep -v grep | grep -q "firefox-bin"; then if [ -f $path ]; then firefox -a $appid else firefox -P $P fi else firefox -P $P fi