Windows context menu handler slows down context menu opening by a lot
- Dominant language
- C++
- Stars
- 3.9k
- Forks
- 1k
- Avg merge
- 1d 17h
- Merged PRs (30d)
- 123
Description
### ⚠️ Before submitting, please verify the following: ⚠️
- [x] This is a **bug**, not a question or a configuration issue.
- [x] This issue is **not** already reported on Github (I have searched for it).
- [x] Nextcloud Server and Desktop Client are **up to date**. See [Server Maintenance and Release Schedule](https://github.com/nextcloud/server/wiki/Maintenance-and-Release-Schedule) and [Desktop Releases](https://nextcloud.com/install/#install-clients) for supported versions.
- [x] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/)
### Bug description
When Nextcloud desktop client is installed, it takes unreasonably long to open file/folder context menu in file explorer. This is caused by `Nextcloud context menu handler`, which I confirmed using [ShellExView](https://www.nirsoft.net/utils/shexview.html) utility which allows you to disable individual shell extensions. Disabling `Nextcloud context menu handler` immediately fixed the issue. It also doesn't matter if this is file system item inside or outside of synced folder.
Here's a video demonstrating the issue:
https://github.com/user-attachments/assets/84edff2d-fab7-4e4b-9b60-2d025179a067
### Steps to reproduce
- Right-click on a file or a folder in Windows file explorer while Nextcloud desktop client is installed
- Observe how long it takes for context menu to open
### Expected behavior
The context menu open without any slow down.
### Which files are affected by this bug
Any file or folder
### Operating system
Windows
### Which version of the operating system you are running.
Windows 10 22H2 (everything updated)
### Installation method
Official Windows MSI
### Nextcloud Server version
33.0.7
### Nextcloud Desktop Client version
34.0.1
### Did this occur after an update or on a clean installation?
Clean desktop client installation
### Are you using the Nextcloud Server Encryption module?
No
### Are you using an external user-backend?
- [ ] Default internal user-backend
- [ ] LDAP or Active Directory
- [ ] SSO - SAML
- [ ] Other
### Nextcloud Server logs
```shell
```
### Additional info
I'm not attaching debug archive since it looks like it contains sensitive information. If you want, I can't send it to you via private channels.
Contributor guide
Assessment
This issue has not been assessed yet.