-
Notifications
You must be signed in to change notification settings - Fork 6.5k
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
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
Context menu item for "File Smith" handle all the verbs which is not belongs to it #25930
Comments
@stefansjfw Do we override some registry keys that we shouldn't override? |
@Aaron-Junker @stefansjfw Could please help take a look on this issue? Thanks. |
Any news on this? I have the same issue. I use custom verbs in the software Everyting (https://www.voidtools.com/forum/viewtopic.php?t=2161) and when I have the File Smith enabled it activates the File Smith instead of my custom verb. |
I'll take a look. So this happens only with File Locksmith? PowerRename does not do this? /needinfo |
And to double check, this happens with the latest version of PowerToys as well (v0.75.1)? |
It looks like PowerRename does not do this. I have it enabled and it doesn't break my custom verb.
Yes. It's still happening in v0.75.1. |
@stefansjfw Any progress? |
The issue remains in v0.81.0. In my case this makes the FileSmith unusable because it breaks all verbs which I am using for other purposes... |
Seeing this in v0.82.1 Invoking almost any verb opens "File Locksmith". Oddly, I'm seeing inconsistent results for which verbs trigger the issue. Yesterday, "properties" and "open" were both opening file locksmith. Today (after a reinstall of powertoys), only "open" is. High-level what I'm doing:
When File Locksmith is enabled, invoking most verbs (open, print etc.) launch file locksmith. Can also confirm that invoking using an integer ID for lpVerb invokes the correct behavior. |
Related: #33470 |
@stefansjfw As a 3rd party developer, I can no longer reliably use IContextMenu to invoke commands by name if the user has File Locksmith installed. This is such a strange issue, I'm wondering if this is exposing a bug in Windows itself? |
Hi @iamcalledrob, Thanks for pointing out this again! I will take a look this week! We are close to releasing a new version of PowerToys and as soon as it's out I will go back to this. It is a strange issue, especially because we have 2 more context menu entries that do not introduce this issue. All should be based on the same logic. I doubt this is a Windows bug, to be honest. |
Thank you for taking a look (and sorry for nudge!) What makes me suspicious re: a Windows bug, is that I took a look at the code and associated PR and it was minimal and straightforward. I didn't see anything happening with the registry either, so the appx manifest should be the only way this thing gets invoked? |
Would you be willing to try an unofficial test build to see if the issue is still there? |
Absolutely, happy to help here |
https://github.com/stefansjfw/PowerToys/releases/tag/v0.0.1 Thanks a lot! you can find installers here. Looking forward to your feedback! |
Hey @stefansjfw I installed the release from above, and there is no longer an "Unlock with File Locksmith" option in the Windows 11 context menu (it's present in the legacy menu). Verb invocation works properly with that release, with the caveat that there is no modern explorer integration any more. Exactly what I did:
|
Was the initial issue referring to win11 contex menu or legacy one? Or both? |
The initial issue is related to invoking a verb programmatically by name on an IContextMenu, e.g. specifying "open" for lpVerb in CMINVOKECOMMANDINFO. As opposed to invoking by position by setting lpVerb to MAKEINTRESOURCE(position). There has never been an issue at the visible UI level -- perhaps because Explorer will always invoke by position rather than verb? |
ok. thanks. I was able to reproduce the issue with the context menu invoked from WizTree app. The debut build I attached above fixes the issue there as well - likely the root cause of the issue is the same, i.e. WizTree using IContextMenu in the background. Thanks for checking, I'll open the PR with the fix soon. There's no Win11 context menu entry because the build I sent is not signed, i.e., a sparse msix package that adds context menu entry must be signed to work |
Amazing. I'm so curious to learn what the root cause was! |
@stefansjfw The root cause is File Smith handle all the verbs that do not related incorrectly, right? |
yes, FileLocksmith with this change skips verbs as it does not use verbs at all. |
Microsoft PowerToys version
0.69.1
Installation method
Microsoft Store
Running as admin
No
Area(s) with issue?
File Locksmith
Steps to reproduce
✔️ Expected Behavior
Verb "Edit" should launch the window that used to edit the .rdp file but File Smith
❌ Actual Behavior
Other Software
No response
The text was updated successfully, but these errors were encountered: