PowerToys icon indicating copy to clipboard operation
PowerToys copied to clipboard

CmdPal: URI activate, rather than using shell:AppsFolder

Open zadjii-msft opened this issue 7 months ago • 1 comments

I have not been able to actually test the bug at the root of #38393. However, a coworker confirmed this fixed it for them, so 🤞

This is a hypothetical fix. The theory being that shell:AppsFolder isn't necessarily the most reliable, but maybe URI handlers are?

We need a URI handler for #39262 anyways, but I just implemented background for now.

The URI scheme is x-cmdpal:. The x- means "experimental".

Now, if we had a stable repro of #38393, I could cut a build with this PR and check. As it stands, I still haven't found one.


And then I went and did the x-cmdpal://settings thing too. So I'd look at

  • https://github.com/microsoft/PowerToys/pull/39269/files/ab58892fcdc4467ec114b781ab97a3097b0a21b0 as the first bit, then
  • 9b9c6d3 as the part where I add the settings handling

zadjii-msft avatar May 06 '25 15:05 zadjii-msft

@jevansaks was hitting #38393 internally, and when he tested this build, it no longer repro'd. So, problem solved?

zadjii-msft avatar May 06 '25 19:05 zadjii-msft

Verified, let's go!

vanzue avatar May 07 '25 03:05 vanzue