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

[Launcher] Kill the Launcher immediately #6747

Merged
merged 2 commits into from
Sep 21, 2020

Conversation

ivan100sic
Copy link
Contributor

Summary of the Pull Request

This is a temporary fix to close the Launcher immediately when the PowerToy is disabled, or PowerToys exits cleanly/is restarted as admin.

PR Checklist

  • Applies to ColorPicker and PT Run take 10 seconds to exit #5860
  • CLA signed. If not, go over here and sign the CLA
  • Tests added/passed
  • Requires documentation to be updated
  • I've discussed this with core contributors already. If not checked, I'm ready to accept this work might be rejected in favor of a different grand plan. Issue number where discussion took place: #xxx

Info on Pull Request

Don't wait for Launcher to exit when it's sent a message, because right now it doesn't seem to react to it. We should keep looking for a proper way to fix this.

Validation Steps Performed

Scenario 1: Disable Launcher. It should quit immediately.
Scenario 2: Restart PT as admin. The launcher will keep the old instance of PowerToys.exe running for 10 more seconds. When it finally quits, the launcher will also quit and so it needs to be restarted manually. This PR also fixed this bug.

Copy link
Contributor

@enricogior enricogior left a comment

Choose a reason for hiding this comment

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

This was discussed off-line, the proper fix will be done after #6660 is merged

@ivan100sic ivan100sic merged commit 6e89ef6 into microsoft:master Sep 21, 2020
@ivan100sic ivan100sic deleted the kill-launcher branch September 21, 2020 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants