Open-Shell / Open-Shell-Menu

Classic Shell Reborn.
MIT License
7.01k stars 433 forks source link

Open-Shell Search will not return file results from Redirected Folders #886

Open JasonCioffi opened 3 years ago

JasonCioffi commented 3 years ago

Hi,

I'm on Windows 10 Enterprise 21H1 and using Open-Shell 4.4.160. The search bar in the Open-Shell start menu will return matching results for files in user profile folders that are not redirected, but will not return results for files residing in redirected folders on my network (Offline files are enabled as well). The Cortana search bar in the taskbar has no issues finding matching files in these redirected folders. I've attached screenshots demonstrating the inconsistent behavior I'm experiencing. Thanks in advance for the help.

Open-Shell search settings

success for files in non-redirected folders

failure for files in redirected folders

cortana search has no issues finding files in redirected folders

Gaurav-Original-ClassicShellTester commented 3 years ago

That's right. The search currently doesn't work well with Offline Files. That's because the Client Side Caching search connector of Explorer generates bogus URLs. Windows has some internal hacks to correctly resolve them to local files instead of doing them via the search system. The details are undocumented and convoluted so Ivo (the developer of the original Classic Shell) decided to not support it.

As a workaround/compromise, instead of using search, you can add this to the LINK or COMMAND field of a custom item (Customize tab of Start Menu Settings, custom item): shell:::{AFDB1F70-2A4C-11d2-9039-00C04F8EEB3E}

This is the Offline Files folder.