PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

PowerToys Awake standalone Tray Icon reports incorrrect time

Open lylebrown opened this issue 1 year ago • 4 comments

Microsoft PowerToys version

0.84.0

Installation method

PowerToys auto-update

Running as admin

Yes

Area(s) with issue?

Awake

Steps to reproduce

  1. Validate that Awake is turned off in the PowerToys settings.
  2. Open a terminal and navigate to the PowerToys install directory.
  3. Input the following command: .\PowerToys.Awake.exe --display-on true --time-limit 1800

✔️ Expected Behavior

I expect this to only keep the display and computer awake for 30 minutes. The tray icon should also reflect this when hovered. This was the behavior prior to updating to v0.84.0.

❌ Actual Behavior

The tray icon for awake now says "[Indefinite]" when hovering over it. However, it does appear to terminate after the specified time. So this is seemingly just a bug with the tray icon display logic. image

Other Software

No response

lylebrown avatar Sep 05 '24 01:09 lylebrown

I'm experiencing the same issue.

gentleman-turk avatar Sep 05 '24 15:09 gentleman-turk

I'm starting to believe that this isn't just an issue with the tray display. I've seen the icon well after the specified duration and my screen has remained on. It seems inconsistent, but I'm happy to run through any troubleshooting steps if needed.

lylebrown avatar Sep 06 '24 03:09 lylebrown

Can reproduce this - thanks for the feedback. Investigating.

dend avatar Sep 08 '24 19:09 dend

Found the issue. Should be covered in #34717. The app wrongly initialized with --use-parent-pid.

dend avatar Sep 08 '24 19:09 dend

Closing this because this is covered by #34148 as the icon behaviors are not expected.

dend avatar Sep 25 '24 18:09 dend