Comments (2)
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:
-
Have the WakaTime extensions communicate with the macos-wakatime process via some IPC mechanism (might be a lot of work).
-
Implement a way for the macOS app to query the wakatime API for active usage of the extensions.
-
Just put a warning somewhere in the UI and show it regardless of whether the extension is installed.
-
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.
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)
- XCode tracking not working HOT 15
- Detect project from url
- Improve Zoom entity detection HOT 2
- Monitored apps view should be scrollable
- Fix Canva tracking
- Client-side custom rules
- Join “Monitored Apps” and “Settings”
- Support new app: Kitty
- Support new app: Affinity {Designer,Photo,Publisher}
- Support new app: Roblox Studio
- Support new app: JetBrains Fleet
- Usage without providing accessibility permissions HOT 1
- Support new app: Mircosoft Edge
- Browser filter: All Except denied sites doesn't work
- Support new app: GitHub Desktop
- Support new app: miro
- Support new app: Rocket.Chat
- Support the ability to dynamically configure new apps HOT 2
- Ability to show today activity
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 macos-wakatime.