breaktimer-app icon indicating copy to clipboard operation
breaktimer-app copied to clipboard

Idle timer doesn't work

Open karamanliev opened this issue 1 year ago • 0 comments

Describe the bug Idle timer does not work if the value is above 1 seconds

To Reproduce Steps to reproduce the behavior:

  1. Go to 'Settings -> Idle Reset'
  2. Set a value which is above 00:00:01s for "Reset break countdown"
  3. Enable notifications
  4. Save settings and observe
  5. 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?

karamanliev avatar Jun 07 '24 15:06 karamanliev