microsoft / microsoft/PowerToys

[Peek] The Runner PID is not validated, resulting in a zombie process

Open
#49,667 0 comments 0 reactions 1 assignee Claimed by @daverayment View on GitHub
Issue-Bug Needs-Triage Product-Peek
Dominant language
C
Stars
139k
Forks
8.6k
PR merge metrics
PR metrics pending

Description

### Microsoft PowerToys version

0.100.2

### Installation method

GitHub

### Area(s) with issue?

Peek

### Steps to reproduce

1. Open PowerShell
2. Enter:

```pwsh
\PowerToys.Peek.UI.exe 9999999
```

### ✔️ Expected Behavior

An error is reported and logged, as there is no Process ID with that number and no folder in the current path with that name.

### ❌ Actual Behavior

Peek opens but presents no UI, and must be ended via Task Manager:

Image

### Upload Bug Report ZIP-file

_No response_

### Additional Information

_No response_

### Other Software

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.