Comments (9)
I just installed activityWatch, had no data (just unknowns).
I thought it might be permissions too, but normally apps will request permissions and pop up in the security & privacy preferences, but ActivityWatch wasn't there. I added accessibility and others manually and restarted the app, and still have no data.
I'm having the same problem as you.
My system information is
macOS Monterey Version 12.1
Mac mini
Chip Apple M1
ActivityWatch Version 0.11.0
Since giving ActivityWatch Accessibility permission doesn't work, my temporary solution is to give Terminal permission of Accessibility and then run /Applications/ActivityWatch.app/Contents/MacOS/aw-qt
from terminal.
The cause of this error might be if you start ActivityWatch from the mac's launchpad aw-watch-window
doesn't have permission for some reason, so the log shows
[ERROR]: Exception thrown while trying to get active window: jxa error: Error: Error: An error occurred. (aw_watcher_window.main:74)
And on my computer, others like aw-watch-afk
is working fine.
from aw-watcher-window.
I just installed activityWatch, had no data (just unknowns).
I thought it might be permissions too, but normally apps will request permissions and pop up in the security & privacy preferences, but ActivityWatch wasn't there. I added accessibility and others manually and restarted the app, and still have no data.
from aw-watcher-window.
I was not able to find a consistent solution to this other than running via the command line, but that's doable.
from aw-watcher-window.
Sometimes (like when updating ActivityWatch) you have to re-add the permissions (remove the old permission, add it again). I don't know why.
I think this weird permissions behavior is specific for unsigned apps (like ActivityWatch).
Worth trying, but not sure it'll fix the issue.
from aw-watcher-window.
That appears to have fixed the issue, I'll keep an eye on it.
Thanks!
Edit: That didn't resolve the issue. Maybe one of these days I'll find time to dig into this.
from aw-watcher-window.
@SgtPooki I have the same problem as you, my info is:
macOS Mojave 10.14.1 (Build 18B75)
ActivityWatch Version v0.11.0
from aw-watcher-window.
Sometimes (like when updating ActivityWatch) you have to re-add the permissions (remove the old permission, add it again). I don't know why.
I think this weird permissions behavior is specific for unsigned apps (like ActivityWatch).
Worth trying, but not sure it'll fix the issue.
@ErikBjare I think this actually is the resolution... removing and adding the entry for ActivityWatch (actually pressing the -
button, unchecking it isn't enough. I think that might be what I did last time.) It's also possible this must be redone after OS updates. I'll check after the next time I have to update.
For everyone else, other than using the dashboard to check if you're experiencing the issue, I found checking the aw-watcher-window log file came in handy. If you see the following error: [ERROR]: Exception thrown while trying to get active window: jxa error: Error: Error: ActivityWatch is not allowed assistive access. (aw_watcher_window.main:74)
, What Erik had suggested.
If that doesn't resolve it, the aw-watcher-window log should shed light on what the issue is if it's not assistive access.
from aw-watcher-window.
I am having the same issue. Although I added AW to the list in System Settings > Privacy > Accessibility, AW cannot log window titles. Starting it via Terminal results in Terminal asking for various permissions and then everything works well. It is a doable workaround but could maybe be fixed nonetheless.
from aw-watcher-window.
The original issue here was due to ActivityWatch not being codesigned, but now it is.
Related permissions issues have a fix in the works, see here: ActivityWatch/activitywatch#334 (comment)
Closing.
from aw-watcher-window.
Related Issues (20)
- [macOS] Exception thrown while trying to get active window: error compiling jxa script HOT 3
- Track webcam and microphone usage HOT 4
- Window Watcher Not Working on M1 Monterey HOT 1
- MacOS: Use realtime accessibility notifications to improve precision and performance HOT 3
- [macos] url changes are not detected
- [macos] detect incognito on safari
- [macos] track audible status
- Aw watcher window quits without any logged error on MacOS Catalina HOT 1
- 900GB Log File caused by error in error handler HOT 1
- Error logging filling up disk HOT 3
- Is it possible to replace aw-watcher-window? HOT 12
- [Windows] aw watcher window does not track correctly HOT 3
- [macos] `loginwindow` reported with latest macOS update HOT 5
- Logs filled up my disk for the second time HOT 5
- [Linux] 'BadRRModeError' object has no attribute 'sequence_number' HOT 5
- [Windows] Exception thrown while trying to get active window HOT 1
- [Linux] Can I use hyprctl to support Hyprland HOT 2
- [Windows] Switch to use title instead of executable
- [Windows] Apps run in Administrator not got recorded HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aw-watcher-window.