fari icon indicating copy to clipboard operation
fari copied to clipboard

don't restart Safari

Open incanus opened this issue 5 years ago • 1 comments

If left running and Safari is quit, it will reopen Safari repeatedly (and infuriatingly), including after crashes or when prompting you to restore windows or not.

incanus avatar Aug 27 '20 18:08 incanus

Figured this out in another script. Something like this:

PROC=$(
  ps ax | \
  grep '/Applications/Safari.app/Contents/MacOS/Safari' | \
  grep -v grep | \
  wc -l
)

if [ $PROC -gt 0 ]; then

[...]

incanus avatar Jan 01 '21 17:01 incanus