PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Powertoys Awake with --PID argument doesn't self terminate.

Open mtsark opened this issue 1 year ago • 1 comments

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

mtsark avatar Aug 30 '24 21:08 mtsark

Likely related to #34148 (incorrect initialization of --use-parent-pid). Could you please share the Awake logs, @mtsark?

dend avatar Sep 08 '24 19:09 dend