PowerToys
PowerToys copied to clipboard
Powertoys Awake with --PID argument doesn't self terminate.
Microsoft PowerToys version
0.83.0
Installation method
Microsoft Store
Running as admin
No
Area(s) with issue?
Awake
Steps to reproduce
Starting awake from a batch script that finds the PID of a process and passes it with a variable to the --pid argument of awake. code: start /d "C:\Program Files\PowerToys" /min PowerToys.Awake.exe --pid %pid% where "%pid%" is a variable that contains the desired PID.
✔️ Expected Behavior
Awake should self terminate when the PID in the argument is terminated.
❌ Actual Behavior
Awake remains activated even after the PID in the argument is terminated.
Other Software
Windows 11 build 22631.4112
Likely related to #34148 (incorrect initialization of --use-parent-pid). Could you please share the Awake logs, @mtsark?