diff --git a/mac/utils.py b/mac/utils.py index 241f0c0..f477b07 100644 --- a/mac/utils.py +++ b/mac/utils.py @@ -18,11 +18,13 @@ def running_browsers(): if re.search(b'Firefox\.app', ps) is not None: running_browsers.append('firefox') - if re.search(b'Safari.app\/Contents\/MacOS\/Safari\ ', ps) is not None: - running_browsers.append('safari') + if re.search(b'com\.apple\.WebKit\.WebContent\n', ps) is not None or \ + re.search(b'Safari.app\/Contents\/MacOS\/Safari\ ', ps) is not None: + running_browsers.append('safari') - if re.search(b'Safari\.app\/Contents\/MacOS\/SafariForWebKitDevelopment', ps) is not None: - running_browsers.append('webkit') + if re.search(b'com\.apple\.WebKit\.WebContent\.Development', ps) is not None or \ + re.search(b'Safari\.app\/Contents\/MacOS\/SafariForWebKitDevelopment', ps) is not None: + running_browsers.append('webkit') if re.search(b'Opera\.app', ps) is not None: running_browsers.append('opera')