question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

macOS - Continual "Control System Events" Message

See original GitHub issue

Describe the bug

Just installed the new version (9) on Mojave for the first time. After the app opens ActivityWatch continues to spam me with messages to control “System Events” even after I have given the app permission under Security & Privacy > Automation as well as Security & Privacy > Accessibility`. This also causes a noticeable lag/slowness for the operating system as a whole.

To Reproduce

Steps to reproduce the behavior:

  1. Open the app on macOS

Expected behavior

I should only need to grant the app permission once and the app should not cause my computer to stutter.

Documentation

Screen Shot 2020-03-19 at 12 40 55 PM

aw-qt_2020-03-19T12-56-05.log aw-watcher-window_2020-03-19T12-56-05.log aw-server_2020-03-19T12-56-05.log

Environment

  • ActivityWatch version: v0.9.dev+c815323
  • OS: [macOS (Mojave)]

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:12
  • Comments:41 (20 by maintainers)

github_iconTop GitHub Comments

8reactions
officeratscommented, Apr 14, 2020

I am sorry for spamming, but I’m trying to find out what’s wrong. My finding is that if I unpack .zip from releases page - it actually works ok. My steps:

  1. download, unpack
  2. run ./aw-qt from iTerm
  3. it asks same permission to “Control System Events”, but for iTerm, not for ActivityWatcher, since the parent process is zsh from iTerm
  4. works normally: no freezes, no permission dialog spam and detects window’s titles correctly, as opposed to bundled .app

I decided to also check how it works from bundled app:

  1. cd /Applications/ActivityWatch.app/Contents/MacOS/
  2. ./aw-qt

And again, works well. Since iTerm2 already has permission it doesn’t even ask for one. No freezes. Window title detection works.

Hope it helps.

edit:formatting

6reactions
8bitgentlemancommented, Mar 19, 2020

@ErikBjare Disabling all of those from the tray icon stops the constant messages and stutter. By process of elimination I turned on and off several combinations of those modules and it seems that the window watcher is the one causing the issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Bash Wants To Control System Events POP-UP Virus (Mac)
"Bash Wants To Control System Events" is a macOS pop-up window (message) used to trick users into allowing "bash" to take over System...
Read more >
osascript wants access to control system events
osascript wants access to control system events. I started my mac and noticed a alert saying "osascript wants access to control system events". ......
Read more >
Avoiding AppleScript Security and Privacy Requests
Since macOS Mojave, the Security and Privacy controls restricts sending and receiving AppleEvents. A given process can only send events to a ...
Read more >
For macOS 11(Big Sur) / macOS 12(Monterey) Users - Sony
When updating your product, you will need to run System Software Update Helper provided on this web page along with the System Software....
Read more >
7 of the Biggest Mac Annoyances & How to Fix Them | OSXDaily
What's with all these Notification alerts? Disable the Constant Notifications Nagging & Alerts ... Go Apple menu > System Preferences > ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found