ActivityWatch / activitywatch

The best free and open-source automated time tracker. Cross-platform, extensible, privacy-focused.
https://activitywatch.net/
Mozilla Public License 2.0
11.33k stars 512 forks source link

Some apps such as terminal, telegram desktop are always unknown #923

Open Dev-cmyser opened 11 months ago

Dev-cmyser commented 11 months ago

Hi there!

Some apps such as terminal, telegram desktop are always unknown! image

image

github-actions[bot] commented 11 months ago

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! 🙏

paucosta-tutrastero commented 11 months ago

Telegram does not have a window tittle, and judging by your screenshot, you might be using a terminal without decorators, and thus ActivityWatch cannot get info about the focused window.

One work around for telegram could be to use it in a web browser, and use use aw-watcher-web to get the tab title.

About the terminal, if you do not mind loosing the granularity of knowing which terminal program are you running, you could class all the unknown as a terminal category. Or if you don't mind loosing the sleek look, activate the window decorators for the terminal

johan-bjareholt commented 11 months ago

Sounds like you are running Wayland?

We do unfortunately not support that properly yet, but there are some workarounds. See https://github.com/ActivityWatch/activitywatch/issues/92

2e3s commented 10 months ago

Telegram has a window title. This problem comes from XWayland which doesn't identify all apps under KDE. KWin knows their titles but it doesn't communicate names by XWayland implementation. E.g. this script is able to read all the necessary information including Telegram window titles as I remember.

brayo-pip commented 2 months ago

Unable to reproduce but the default aw-watcher-window was able to get the firefox window name. image