breaktimer-app
breaktimer-app copied to clipboard
Idle timer doesn't work
Describe the bug Idle timer does not work if the value is above 1 seconds
To Reproduce Steps to reproduce the behavior:
- Go to 'Settings -> Idle Reset'
- Set a value which is above 00:00:01s for "Reset break countdown"
- Enable notifications
- Save settings and observe
- Does not work.
Expected behavior Idle detection should work
Screenshots Video:
Screencast from 2024-06-07 17-52-09.webm
Specs: Arch Linux Gnome 46 Wayland
Additional context
I guess it's a Wayland related issue and electron's powerMonitor.getSystemIdleTime() api always returns 0 (one of the many issues on their repo - 34826) and the computer idle time is not reported correctly. I was able to make it work by running the application with --enable-features=UseOzonePlatform --ozone-platform=wayland flags.
Maybe update the README to flag this and the possible workaround?