Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

don't restart Safari #4

Open
incanus opened this issue Aug 27, 2020 · 1 comment
Open

don't restart Safari #4

incanus opened this issue Aug 27, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@incanus
Copy link
Owner

incanus commented Aug 27, 2020

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 incanus added the bug Something isn't working label Aug 27, 2020
@incanus
Copy link
Owner Author

incanus commented Jan 1, 2021

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

[...]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant