ActivityWatch / aw-watcher-window-wayland

Window and AFK watcher for some Wayland compositors
Mozilla Public License 2.0
57 stars 14 forks source link

Error launching under the latest version of Sway: dropped KDE idle protocol in favor of standard idle-notify #33

Open jmarca opened 8 months ago

jmarca commented 8 months ago

I recently upgraded sway to use the git version, not the release version (from last February).

activitywatch runs fine, but this wayland window watcher does not.

I get the following error:

aw-watcher-window-wayland
### Setting up display
### Fetching wayland globals
### Setting up toplevel manager
### Setting up idle timeout
thread 'main' panicked at 'Wayland session does not expose a Idle object, this window manager is most likely not supported: Missing', src/idle.rs:79:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

After poking at this and looking at the commit logs of Sway, perhaps this commit in the sway project is the culprit?

commit 7cf4e1d5c68d764037f78cbffb167a4cc763c6c1
Author: Simon Ser <contact@emersion.fr>
Date:   Mon Jun 19 21:22:23 2023 +0200

    Drop support for KDE's idle protocol

    We support the standard idle-notify protocol since Sway 1.8.

If this is unrelated, I'd be grateful for pointers to how to fix this.

ErikBjare commented 8 months ago

Thanks for reporting!

Looks like we need to implement idle-notify support @johan-bjareholt

If you don't want to wait: awatcher supports both Kwin Idle and idle-notify: https://github.com/2e3s/awatcher