Coder Social home page Coder Social logo

Comments (9)

totorowechat avatar totorowechat commented on June 18, 2024 4

I just installed activityWatch, had no data (just unknowns). image

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.

SgtPooki avatar SgtPooki commented on June 18, 2024 3

I just installed activityWatch, had no data (just unknowns).
image

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.

may avatar may commented on June 18, 2024 2

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.

ErikBjare avatar ErikBjare commented on June 18, 2024 1

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.

prplecake avatar prplecake commented on June 18, 2024

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.

bob-ortiz avatar bob-ortiz commented on June 18, 2024

@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.

prplecake avatar prplecake commented on June 18, 2024

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.

jensarbogast avatar jensarbogast commented on June 18, 2024

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.

ErikBjare avatar ErikBjare commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.