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

Power Toys Run doesn't open #4399

Closed
VidathD opened this issue Jun 20, 2020 · 62 comments
Closed

Power Toys Run doesn't open #4399

VidathD opened this issue Jun 20, 2020 · 62 comments
Assignees
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 Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. Severity-High Bugs that we consider a blocking issue for release (crashes stuff outside of PT)
Milestone

Comments

@VidathD
Copy link

VidathD commented Jun 20, 2020

Environment

Windows build number: [run "ver" at a command prompt]: 10.0.19041.329
PowerToys version: 0.18.2
PowerToy module for which you are reporting the bug (if applicable): PowerToys Run

Steps to reproduce

It started out of nowhere.

Expected behavior

When I press Alt + Space in my keyboard, I want PowerToys run to open.

Actual behavior

No matter what key combination I configure PowerToys run to, it won't open. Instead, it will do something else using those keys. If there is no other shortcut for that combination, nothing happens.

Screenshots

@ghost ghost added the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Jun 20, 2020
@DavidGretzschel
Copy link

DavidGretzschel commented Jun 21, 2020

Any chance you just updated to Windows 2004 and this is #3925?
You can check by opening settings and seeing whether or not PowerToys Run and possibly Keyboard Manager is greyed out.

@VidathD
Copy link
Author

VidathD commented Jun 22, 2020

@DavidGretzschel No, they are not greyed out.
Screenshot (26)
Screenshot (27)

It worked before in Windows 2004 btw. I have 2 laptops of the same model (Dell Latitude 3379) and it worked before in both of them. However, I didn't use it in one of them after I upgraded to 2004. Maybe it was caused by a cumulative update?

@saahmedm
Copy link
Contributor

hey @Sasukeeuchiha, sorry about this, we need a few more details however. can you check out event viewer and share any event logs related to this?

@saahmedm saahmedm added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Jun 22, 2020
@VidathD
Copy link
Author

VidathD commented Jun 22, 2020

Where in event viewer can I find these? @saahmedm

@ghost ghost added Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Jun 22, 2020
@crutkas
Copy link
Member

crutkas commented Jun 25, 2020

Would be here but it would say "PowerToys"

image

@crutkas crutkas added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Product-PowerToys Run Improved app launch PT Run (Win+R) Window Issue-Bug Something isn't working and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Jun 25, 2020
@VidathD
Copy link
Author

VidathD commented Jun 26, 2020

Nothing new appears there when I press Alt+Space.

@ghost ghost added Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Jun 26, 2020
@crutkas
Copy link
Member

crutkas commented Jun 26, 2020

Is powerlaunch showing in task manager?

@crutkas crutkas added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Jun 26, 2020
@VidathD
Copy link
Author

VidathD commented Jun 26, 2020

Only power toys runner.
image

@ghost ghost added Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels Jun 26, 2020
@crutkas
Copy link
Member

crutkas commented Jun 29, 2020

that means something is causing a crash on your system. Lets revisit this tomorrow with 0.19. Tons of fixes there and we may have fixed this.

In theory event viewer would have something ala this:
image

@VidathD
Copy link
Author

VidathD commented Jul 1, 2020

@crutkas The update did not fix it! In the log the only thing about powertoys even when I press alt+space is that powertoys was updated

@crutkas
Copy link
Member

crutkas commented Jul 1, 2020

Right now we need more data. Can you do a teams call maybe so we can see closer what is happening?

@VidathD
Copy link
Author

VidathD commented Jul 1, 2020

Sure How? @crutkas

@crutkas crutkas added Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something Severity-High Bugs that we consider a blocking issue for release (crashes stuff outside of PT) and removed Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams labels Jul 1, 2020
@VidathD
Copy link
Author

VidathD commented Sep 9, 2020

@Sasukeeuchiha, This a test msi that I created to figure out the issue.
Can you please uninstall the msi that you have and install this. Please note this is strictly for testing pusposes, it is not an official build and please uninstall it after.
PowerToysSetup-testBuild-x64.zip

You should see a popup either with an error code or without, which would help us narrow down the issue.

image
image

Please share the message window that you get. Thanks!

@alekhyareddy28 No popup, or anything. Nothing in eventviewer or task manager.

@alekhyareddy28 alekhyareddy28 removed the Needs-Triage For issues raised to be triaged and prioritized by internal Microsoft teams label Sep 9, 2020
@alekhyareddy28
Copy link
Contributor

@Sasukeeuchiha, thank you for your response. UAC pop up is not expected when launching with admin turned off. Can you share a screenshot of the popup or atleast the program name in the pop-up? Thank you for that information will look into it. Also to confirm, PowerToys was running as a normal user (not as admin) with the above msi, correct?

@VidathD
Copy link
Author

VidathD commented Sep 9, 2020

@Sasukeeuchiha, thank you for your response. UAC pop up is not expected when launching with admin turned off. Can you share a screenshot of the popup or atleast the program name in the pop-up? Thank you for that information will look into it. Also to confirm, PowerToys was running as a normal user (not as admin) with the above msi, correct?

@alekhyareddy28
The UAC says powertoys.exe

I tried the msi with both admin on and off if that's what you mean

@VidathD
Copy link
Author

VidathD commented Sep 9, 2020

Here's a screen record. The screen goes black when the UAC pops up.
https://1drv.ms/v/s!AvPTmwNcI1nvnl3P2_JCK1ukaAIR?e=jMiijX

@alekhyareddy28
Copy link
Contributor

@Sasukeeuchiha, seems like something is going wrong from the settings/runner side because it is always launching settings as admin even though the always launch as admin toggle button is turned off. You can see that the run as admin button is greyed out in the screen recording that you have shared. This might be the reason for the UAC to pop up. To figure out why that might be happening can you please share your settings.json file located at C:\Users\USERNAME\AppData\Local\Microsoft\PowerToys?

Once that is done, can you please try to delete that file and start PowerToys again?
We really appreciate your help and patience. thank you.

@VidathD
Copy link
Author

VidathD commented Sep 10, 2020

settings.json.txt
Still doesn't work. I tried deleting PowerToys Run folder and trying to get PT to recreate it but it only creates an empty folder. I can't open PT run in setting UI either. I can open it again when I restore the folder. But PT run doesn't work.

@VidathD
Copy link
Author

VidathD commented Sep 10, 2020

@alekhyareddy28 settings.json.txt
Here's the one from PT Run folder. If you want to remote into my laptop and have a closer look, I am OK with that.

@alekhyareddy28
Copy link
Contributor

@enricogior, Do you have any idea why the settings app would be launched as admin even when the always launch as admin option is turned off? Thanks.

@VidathD
Copy link
Author

VidathD commented Sep 12, 2020

@crutkas @alekhyareddy28 @enricogior For now I have implemented a temporary fix. I have manually set up a task in task scheduler to start powerlauncher.exe on log on. Works fine till you come up with a fix. May not be perfect but works...
powerlauncher.xml.txt
Slightly edited the attached file (Name, userID)

@enricogior
Copy link
Contributor

@alekhyareddy28
I don't have enough information to make a guess.

@Sasukeeuchiha let's start from scratch:

  • remove the scheduled task you created
  • uninstall the current version of PowerToys
  • check if the C:\Program Files\PowerToys as been removed, if not, open the control panel (in the Start menu type Controp Panel), go to Programs -> Uninstall or change a progam and verify if there is still PowerToys present
  • keep uninstalling PowerToys until it's gone from the list of installed programs
  • check again if the C:\Program Files\PowerToys as been removed, if not, manually delete it
  • go to C:\Users\Enrico\AppData\Local\Microsoft\ and delete the PowerToys folder
  • install (direct download link) https://github.com/microsoft/PowerToys/releases/download/v0.21.1/PowerToysSetup-0.21.1-x64.exe
  • open the PowerToys Settings, does it prompt the UAC?

@VidathD
Copy link
Author

VidathD commented Sep 14, 2020

@enricogior Did all that. Had to manually remove C:\Program Files\PowerToys. Still prompts for UAC. Admin is off.

@enricogior
Copy link
Contributor

@Sasukeeuchiha
you have the default Windows UAC settings right?
Do you run any third-party shell?
Can you please upload the C:\Users\%USERNAME%\AppData\Local\Microsoft\PowerToys\settings.json file, to check if the elevation is set in the settings?

@alekhyareddy28
Copy link
Contributor

@Sasukeeuchiha
you have the default Windows UAC settings right?
Do you run any third-party shell?
Can you please upload the C:\Users\%USERNAME%\AppData\Local\Microsoft\PowerToys\settings.json file, to check if the elevation is set in the settings?

The settings.json file was shared in this comment - #4399 (comment).

@enricogior
Copy link
Contributor

@alekhyareddy28
I would like to see the new settings file after the clean up.

@VidathD
Copy link
Author

VidathD commented Sep 14, 2020

@alekhyareddy28
I would like to see the new settings file after the clean up.

settings.json.txt

@VidathD
Copy link
Author

VidathD commented Sep 14, 2020

@enricogior

@Sasukeeuchiha
you have the default Windows UAC settings right?
Do you run any third-party shell?
Can you please upload the C:\Users\%USERNAME%\AppData\Local\Microsoft\PowerToys\settings.json file, to check if the elevation is set in the settings?

Yes. Default UAC, NO third party shell, run elevated is false in settings.json

@enricogior
Copy link
Contributor

@Sasukeeuchiha
this is weird:
image

even if the run_elevated setting is OFF, the process is actually running elevated.
How did you start? Automatically at start up?
If you quit PowerToys and restart it manually is still elevated?

@VidathD
Copy link
Author

VidathD commented Sep 15, 2020

@Sasukeeuchiha
this is weird:
image

even if the run_elevated setting is OFF, the process is actually running elevated.
How did you start? Automatically at start up?
If you quit PowerToys and restart it manually is still elevated?

@enricogior Yes. It still prompts for UAC and the .json file is still the same

@alekhyareddy28
Copy link
Contributor

@Sasukeeuchiha, thank you for your patience. PT Run not launching for the first time when powertoys was being run as admin was a known issue and a fix has been made for the same. That might be a part of the problem that you're facing along with something always launching PowerToys as admin.

Can you please see if the always run as admin is set for PowerToys.exe? You can follow these steps to check.
Have you maybe in the past configured it to always run as admin ? (I'm ruling out anything to do with UAC as you said that you have the default configurations)

Our next release should be out soon, so maybe we should try out the new release and see if that fixes your issue. thank you once again for your response.

@VidathD
Copy link
Author

VidathD commented Sep 23, 2020

@Sasukeeuchiha, thank you for your patience. PT Run not launching for the first time when powertoys was being run as admin was a known issue and a fix has been made for the same. That might be a part of the problem that you're facing along with something always launching PowerToys as admin.

Can you please see if the always run as admin is set for PowerToys.exe? You can follow these steps to check.
Have you maybe in the past configured it to always run as admin ? (I'm ruling out anything to do with UAC as you said that you have the default configurations)

Our next release should be out soon, so maybe we should try out the new release and see if that fixes your issue. thank you once again for your response.

@crutkas @enricogior @alekhyareddy28 Looks like that was the issue. Even though the "Run as administrator" is greyed out in advanced, it was ticked in the compatibility tab. Now the only issue is that it doesn't run as when launching PT as admin. But that is a known issue. So I guess you can mention that issue # here and close this. Thank you for all your time and attention.
Screenshot 2020-09-23 205509
Screenshot 2020-09-23 205543

@alekhyareddy28 alekhyareddy28 removed the Status-In progress This issue or work-item is under development label Sep 23, 2020
@alekhyareddy28
Copy link
Contributor

@Sasukeeuchiha that's great. Thank you. Glad the issue is fixed. Closing in favour of #6060.

@alekhyareddy28 alekhyareddy28 added the Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. label Sep 23, 2020
@crutkas crutkas removed the Needs-Team-Response An issue author responded so the team needs to follow up label Jun 8, 2021
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 Resolution-Duplicate There's another issue on the tracker that's pretty much the same thing. Severity-High Bugs that we consider a blocking issue for release (crashes stuff outside of PT)
Projects
None yet
Development

No branches or pull requests

9 participants