Skip to content

[Cmdpal] Cmdpal fails to launch from Quick Access when already running in background #39429

@lei9444

Description

@lei9444

Microsoft PowerToys version

0.91.0

Installation method

Other (please specify in "Steps to Reproduce")

Area(s) with issue?

Command Palette

Steps to reproduce

  1. Ensure Cmdpal is already running in the background.
  2. Launch Cmdpal via PowerToy's Quick Access.
  3. Observe that nothing appears to happen.
  4. Check the logs — an unexpected log file will be generated.

#39376

The root cause is:
a. Launch will create a 2nd instance of Cmdpal to be run, and try to activate the original (i.e. 1st) one
b. Unfortunately there is a bug in Window.Activate does not activate and bring window to foreground in WinUI3 if window is in background but not minimized

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

Additional Information

No response

Other Software

No response

Metadata

Metadata

Labels

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions