ActivityWatch / activitywatch

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

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

Open Dev-cmyser opened 1 year ago

Dev-cmyser commented 1 year ago

Hi there!

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

image

github-actions[bot] commented 1 year 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 1 year 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 1 year 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 1 year 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 7 months ago

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

igorcafe commented 1 week ago

here mpv and telegram-desktop are both 'unknown'

igorcafe commented 1 week ago

is there a workaround to execute these programs and feed aw-watcher-window with a different window title?