PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

Processes started by PT-Run are considered children

Open oorzkws opened this issue 4 years ago • 6 comments

Microsoft PowerToys version

0.55.1

Running as admin

  • [X] Yes

Area(s) with issue?

PowerToys Run

Steps to reproduce

When running a process with PT-Run, the process it starts is considered a "child", when this isn't the expected behavior.

image

✔️ Expected Behavior

The process starts independently

❌ Actual Behavior

The process is started as a child of PT-Run

Other Software

qBittorrent 4.4.0

Reproducible with any other software by running internet explorer from PT-Run then checking task manager.

oorzkws avatar Feb 10 '22 03:02 oorzkws

Able to repro this.

franky920920 avatar Feb 10 '22 06:02 franky920920

Doesn't seem to happen with me on win 11.

reZdotjson avatar Feb 10 '22 14:02 reZdotjson

How do you started the process? File link, App plugin or Run plugin?

htcfreek avatar Feb 10 '22 17:02 htcfreek

I can confirm this behavior. I have tested it for Program plugin, Run plugin and Search plugin: image (Screenshot from Sysinternals Process Explorer.)

I am not sure if we can start the processes independent.

htcfreek avatar Feb 10 '22 17:02 htcfreek

I am not sure if we can start the processes independent.

If I start a process directly from Windows Explorer (ex: %ProgramFiles%\Internet Explorer\iexplore.exe), it doesn't show as a child in Task Manager. Is there any way we can use the same behavior?

oorzkws avatar Feb 11 '22 03:02 oorzkws

can verify via process explorer, still a thing inside 0.64

crutkas avatar Nov 15 '22 01:11 crutkas

Is this still an issue with the latest version? /needinfo I cannot reproduce P.S. 🎈 happy anniversary 🥳

Jay-o-Way avatar Feb 09 '23 16:02 Jay-o-Way

Is this still an issue with the latest version? /needinfo I cannot reproduce P.S. 🎈 happy anniversary 🥳

Thanks for checking in. After the last Windows upgrade I did, it stopped grouping in task manager - I'm not certain if it was a PT-Run change around the same time, or if there's just a quirk that's present on an older windows build that is no longer present.

It still groups in Process Explorer, but I don't consider this an issue as it doesn't actually affect how I interact with managing processes like the grouping in Task Manager did. image

The issue in the original post is thus resolved, unless you consider the Process Explorer grouping an issue I'm happy to see this closed.

oorzkws avatar Feb 10 '23 01:02 oorzkws

Thanks for the reply. I don't use Process Explorer myself, but I'm thinking maybe it has a different definition of "child process"? I mean, of PT Run starts an other app, isn't that still a relation?

Jay-o-Way avatar Feb 10 '23 06:02 Jay-o-Way

I mean, of PT Run starts an other app, isn't that still a relation?

Sure, but the practical part of the issue was that when managing running processes in task manager, the "child" processes of PT-Run would be hidden without another click (example below)

image

It's useful behavior when the processes are truly related, but it was frustrating when PT-Run wasn't really actively involved with those processes beyond being where I chose to launch them from. That's no longer the case, thankfully - though I couldn't tell you why or when that changed.

oorzkws avatar Feb 10 '23 07:02 oorzkws

@franky920920 would you happen to still be able to reproduce this, or is it resolved for you as well?

oorzkws avatar Feb 10 '23 07:02 oorzkws

@jay-o-way why did you flip the fix label here?

crutkas avatar May 08 '23 17:05 crutkas

Can't remember. Might have been a local test.

Jay-o-Way avatar May 08 '23 23:05 Jay-o-Way

@oorzkws is this still an issue for you? /needinfo

crutkas avatar Jun 09 '23 04:06 crutkas

@oorzkws is this still an issue for you? /needinfo

No longer occurs for me, I can't tell you if it was a PT-Run fix though - I had an OS reinstall a few months after filing the issue.| edit: feel free to close the issue if that's a workable answer, no protest here

oorzkws avatar Jun 09 '23 23:06 oorzkws

Fixed in 0.71 release of PowerToys. aka.ms/installpowertoys

crutkas avatar Jul 14 '23 17:07 crutkas