Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Peek]Create Setting to run not elevated #26308

Merged
merged 2 commits into from May 25, 2023

Conversation

jaimecbernardo
Copy link
Collaborator

Summary of the Pull Request

Add a Setting to always run Peek not elevated, which is on by default.
If running Peek un-elevated brings other issues, the users can still manipulate the Setting to troubleshoot.

image

PR Checklist

Detailed Description of the Pull Request / Additional comments

Uses the same process to create Peek that PowerToys Run uses when trying to run non-elevated.

Changes the process handle we get for starting non-elevated to also get a PROCESS_TERMINATE permission.

Validation Steps Performed

Created a network share through net use t: \\localhost\c$\tempshare and verified that Peek didn't work on 0.70.0 when running elevated but it works with this change and the Setting turned on.

@jaimecbernardo jaimecbernardo added the Hot Fix Items we will product an out-of-band release for label May 25, 2023
Copy link
Collaborator

@yuyoyuppe yuyoyuppe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@jaimecbernardo jaimecbernardo merged commit 42e7079 into main May 25, 2023
10 checks passed
@crutkas crutkas deleted the dev/jaime/peek-setting-to-run-not-elevated branch June 1, 2023 03:48
BLM16 pushed a commit to BLM16/PowerToys that referenced this pull request Jun 22, 2023
* [Peek]Create Setting to run not elevated

* Optionally add access permissions to the handles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Hot Fix Items we will product an out-of-band release for
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants