activitywatch icon indicating copy to clipboard operation
activitywatch copied to clipboard

All Electron based apps bundle up as "Electron"

Open ronilaukkarinen opened this issue 5 years ago • 5 comments

  • [X] I am on the latest ActivityWatch version.
  • [X] I have searched the issues of this repo and believe that this is not a duplicate.
  • OS version and name: macOS 10.15.7 Catalina
  • ActivityWatch version: v0.10.0

Describe the bug

When using for example Visual Studio Code, I expect to see "Visual Studio Code" in Applications and not "Electron".

To Reproduce

Steps to reproduce the behavior:

1. Use Visual Studio Code
2. Go to main view
3. See "Electron"

Expected behavior

I expect to see app with its own name instead of the Electron framework.

ronilaukkarinen avatar Dec 11 '20 10:12 ronilaukkarinen

Hi there! As you're new to this repo, please make sure you've used an appropriate issue template and searched for duplicates (it helps us focus on actual development!). We'd also like to suggest that you read our contribution guidelines and our code of conduct. Thanks a bunch for opening your first issue! 🙏

github-actions[bot] avatar Dec 11 '20 10:12 github-actions[bot]

This is probably an issue with Visual Studio Code, not ActivityWatch.

There's not much we can do to fix cases like this where an application doesn't provide an accurate app name (like https://github.com/ActivityWatch/aw-watcher-window/issues/31). But since the string 'Visual Studio Code' (or similar) probably shows up in the window title anyway, it's not that big of a deal.

Also, FWIW, when I run 'Code - OSS' (open-source VSCode fork) on Linux, it correctly displays "code-oss" as app name. Might be a macOS issue.

ErikBjare avatar Dec 11 '20 11:12 ErikBjare

Unfortunately I still see exactly same picture on latest AW running on latest Mac OS :( Very annoying since it bundles up many different apps and summarizing time from window titles (where it doesn't show "Visual Studio Code" but just workspace names) is a real hassle :(

Programmierus avatar Apr 29 '21 17:04 Programmierus

@iloveitaly seems to have solved this in https://github.com/ActivityWatch/aw-watcher-window/pull/52.

Not sure why/how that approach differs from the old one, but it does.

ErikBjare avatar May 17 '21 06:05 ErikBjare

I had the same problem on macOS High Sierra, but after re-enabling the Accessibility permissions, it seems to work just fine... However, the shown app name in ActivityWatch is just Code, not Visual Studio Code. This is because the app window on macOS is called Code (changing the app filename doesn't affect that).

BelKed avatar May 01 '22 10:05 BelKed

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

stale[bot] avatar May 21 '23 17:05 stale[bot]