Git Product home page Git Product logo

Comments (2)

starbugs avatar starbugs commented on June 11, 2024

Did you have an approach in mind for this? I guess it would technically be possible to detect whether an extension is installed by inspecting the filesystem. I am not sure though if this is what you had in mind since this could bring up technical challenges and privacy concerns. macOS might also show a warning when we try to access certain folders on the filesystem (but I didn't try yet).

There are multiple solutions that I could think of, but they come with different caveats:

  1. Have the WakaTime extensions communicate with the macos-wakatime process via some IPC mechanism (might be a lot of work).

  2. Implement a way for the macOS app to query the wakatime API for active usage of the extensions.

  3. Just put a warning somewhere in the UI and show it regardless of whether the extension is installed.

  4. Monitor the browser's extension folders (with the caveats from above).

I will move to the next issue for now since I am not sure what implementation you'd prefer and this may potentially be a lot of work.

from macos-wakatime.

alanhamlett avatar alanhamlett commented on June 11, 2024

I like option 2 the best. We already have the API for it:
https://wakatime.com/developers/#user_agents

Just look for any user agents with last_seen_at within the last 5 minutes and is_browser_extension set to true. Also filter by name matching enabled browsers so we don't show the warning to people using macos-wakatime to track Firefox but not Chrome, and only have the browser extension installed in Chrome not Firefox.

from macos-wakatime.

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.