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

PowerToys Run: Shortcut Not Working As Admin #4112

Closed
mpearon opened this issue Jun 5, 2020 · 28 comments
Closed

PowerToys Run: Shortcut Not Working As Admin #4112

mpearon opened this issue Jun 5, 2020 · 28 comments
Labels
Issue-Bug Something isn't working Priority-0 Bugs that we consider release-blocking/recall-class (P0) Product-PowerToys Run Improved app launch PT Run (Win+R) Window

Comments

@mpearon
Copy link

mpearon commented Jun 5, 2020

Environment

Windows build number: Microsoft Windows [Version 10.0.18363.836]
PowerToys version: v0.18.2
PowerToy module for which you are reporting the bug (if applicable): PowerToys Run

Steps to reproduce

Run PowerToys as Admin
Attempt to launch PT Run via Alt+Space shortcut

Expected behavior

PowerToys Run should trigger, displaying UI

Actual behavior

PowerToys Run does not trigger

Screenshots

As Admin
As Standard User

@thecloudtaylor
Copy link
Member

+1 (taylorb)

@Quantum-Prophet
Copy link

I have the same issue. Power Toys Run will not trigger if running as Admin. I also tried to use different key combinations, but this did not work. Power Toys Run will trigger normally if not running as Admin.
Windows 10 Pro
Version 1909
OS build 18363.836
Power Toys version 0.18.2

@jyuwono jyuwono added Issue-Bug Something isn't working Product-PowerToys Run Improved app launch PT Run (Win+R) Window labels Jun 9, 2020
@jyuwono
Copy link
Contributor

jyuwono commented Jun 10, 2020

@mpearon did you use v0.18.1 previously and did it work in v0.18.1?

@crutkas
Copy link
Member

crutkas commented Jun 10, 2020

@mpearon / @taylorb-microsoft / @Quantum-Prophet Do you have UAC disabled?

@thecloudtaylor
Copy link
Member

No, though the latest update (0.18.02) seemed to fix the problem

@mpearon
Copy link
Author

mpearon commented Jun 10, 2020

@jyuwono - I used v0.18.1, but did not test this feature.
@crutkas - UAC is enabled in my case (corporate asset, enforced by GP). Is this a requirement? I don't see any mention of it on the repo (or I'm overlooking it).

I have not had @taylorb-microsoft's experience. Mine is still non-functional on v0.18.2

@androidSwDev099
Copy link

androidSwDev099 commented Jun 10, 2020

I am able to run PT Run from a command prompt (need the quotes):
"C:\Program Files\PowerToys\modules\launcher\PowerLauncher.exe"

Maybe worth a try for people who can't run it using keyboard shortcut just to see what happens.

@crutkas
Copy link
Member

crutkas commented Jun 10, 2020

18.2 should have fixed the underlying issue for if PT was running as admin, launcher doesn't work correctly.

@mpearon Trying to reduce what the commonalities are here. Is the app running? Can you check task manager?

@androidSwDev099 the app should be running already in the background. it it isn't, then something crashed it and would love to see the event logs
image

@crutkas
Copy link
Member

crutkas commented Jun 10, 2020

to confirm @mpearon, you're saying it works as non-admin but doesn't when PT is run as Admin, correct with 0.18.2?

@mpearon
Copy link
Author

mpearon commented Jun 10, 2020

@crutkas - Good call. It looks like PowerLauncher is not running at all (or is crashing - will investigate), when running as Admin.
To answer the second question (duplicating the above) - Correct. PowerLauncher is running the background when PT is launched as user, but it is not running when PT is launched as an Admin.

@mpearon
Copy link
Author

mpearon commented Jun 10, 2020

Something to add - I can launch the PowerLauncher executable as an admin independently of PT by using the method that @androidSwDev099 calls out.

@crutkas
Copy link
Member

crutkas commented Jun 10, 2020

Anything in your event logs?

@androidSwDev099
Copy link

@androidSwDev099 the app should be running already in the background. it it isn't, then something crashed it and would love to see the event logs

My PT Run works fine. I'm just here helping.

@mpearon
Copy link
Author

mpearon commented Jun 10, 2020

@crutkas - Nothing that stood out when I looked earlier. I'll dig a bit deeper when I'm back in the office tomorrow, and play on my personal machine tonight to eliminate environmental issues.

@androidSwDev099
Copy link

androidSwDev099 commented Jun 10, 2020

I am able to run PT Run from a command prompt (need the quotes):
"C:\Program Files\PowerToys\modules\launcher\PowerLauncher.exe"

Maybe worth a try for people who can't run it using keyboard shortcut just to see what happens.

Additional information:
If PowerLauncher.exe is running either because PowerToys app started it or you did from the command prompt, then doing the above command again works the same as doing the PT Run shortcut key combination and brings up the PT Run dialog.

@saahmedm saahmedm added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Jun 11, 2020
@Quantum-Prophet
Copy link

Quantum-Prophet commented Jun 15, 2020 via email

@mpearon
Copy link
Author

mpearon commented Jun 15, 2020

@crutkas - I checked my personal machine and it is behaving the same way:

  • Nothing in the obvious event log sources to give me any hints
  • Using the Alt+Space shortcut will not trigger PTRun
  • PTRun can be launched (and is functional) by calling PowerLauncher.exe directly

@androidSwDev099
Copy link

Can you post a screenshot of PT Run settings? Did you try changing the shortcut to say Ctrl-Space or Ctrl-Alt-Space?

@mpearon
Copy link
Author

mpearon commented Jun 15, 2020

@androidSwDev099 - Sure, I'll attach a screenshot to this response. I had not tried switching the shortcut previously, but I just did (evidenced in screenshot) to no avail.
Screenshot

@androidSwDev099
Copy link

androidSwDev099 commented Jun 15, 2020

After you change the shortcut, be sure to click outside of the shortcut box and confirm that the shortcut is set to what you expect.

@mpearon
Copy link
Author

mpearon commented Jun 15, 2020

@androidSwDev099 - I have confirmed. I went as far as to restart the application. The shortcut change procedure is functional in the user scope, but not the admin scope.

@mpearon mpearon closed this as completed Jun 15, 2020
@mpearon mpearon reopened this Jun 15, 2020
@mpearon
Copy link
Author

mpearon commented Jun 15, 2020

Sorry - got a little click-happy and accidentally closed the issue. Should be re-opened now.

@androidSwDev099
Copy link

So the issue is that when you run PowerToys as administrator and look in the task manager, PowerLauncher.exe is not running as it should, correct?

@mpearon
Copy link
Author

mpearon commented Jun 15, 2020

@androidSwDev099 - That is correct.

@androidSwDev099
Copy link

androidSwDev099 commented Jun 15, 2020

Do you get any errors if you run following from an administrator command prompt? :
"C:\Program Files\PowerToys\PowerToys.exe"

This works for me and my shortcut Ctrl-Space launches PT Run as admin or not. Maybe you'll see an error in command prompt window when running as admin.

Also, why do you want to run it as admin? I'm trying to understand/learn :) .

Started from admin command prompt
image

@crutkas
Copy link
Member

crutkas commented Jun 15, 2020

@enricogior, with 0.18.2, we directly made it so you can't run PT Run as an admin but it should de-elevate PT Run. Correct?

If so, looks like we may have an edge case bug then for it not properly launching. If @taylorb-microsoft is this same issue, I may be able to buy him a coffee to aid in getting some debugging time.

@crutkas crutkas removed the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label Jun 15, 2020
@crutkas crutkas added this to the v1.0 Release milestone Jun 15, 2020
@crutkas crutkas added the Priority-0 Bugs that we consider release-blocking/recall-class (P0) label Jun 15, 2020
@enricogior
Copy link
Contributor

@crutkas
if you start PT Run from Windows Explorer, you can run it as administrator.
When it's started from the runner, it will run with the same elevation of Windows Explorer.

@crutkas
Copy link
Member

crutkas commented Sep 1, 2020

This should be fixed by #6060

@crutkas crutkas closed this as completed Sep 1, 2020
@saahmedm saahmedm removed this from the InVEST-2009 milestone Sep 1, 2020
@crutkas crutkas added this to the v1.0 Release milestone Sep 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug Something isn't working Priority-0 Bugs that we consider release-blocking/recall-class (P0) Product-PowerToys Run Improved app launch PT Run (Win+R) Window
Projects
None yet
Development

No branches or pull requests

8 participants