cryptomator icon indicating copy to clipboard operation
cryptomator copied to clipboard

WinFsp: no shell overlay icons (TortoiseHg) - neither network nor Local Drive mode works

Open Brat-Wurscht opened this issue 8 months ago • 0 comments

Summary

Shell overlay icons from TortoiseHg don't work on Cryptomator drives - WinFsp network mode skips overlays (DRIVE_REMOTE), WinFsp Local Drive breaks Mercurial entirely (Code 255). Mounting via Mount Manager (\.\X:) would fix both

Please agree to the following

Motivation

WinFsp: mount via Mount Manager for better app compatibility

I use TortoiseHg (Mercurial) on repos inside a Cryptomator vault. The TortoiseHg overlay icons in Explorer don't show up on the Cryptomator drive. The context menu works, just the overlays are missing.

Neither WinFsp mode solves this:

  • WinFsp (network drive, default): Mercurial works, context menu works, but no overlay icons. The drive shows up as DRIVE_REMOTE and TortoiseHg skips overlays for that - even with LocalDisksOnly = 0 in the registry.

  • WinFsp (Local Drive): Mercurial fails completely:

    abort: error getting current working directory: 
    The volume does not contain a recognized file system.
    [Code: 255]
    

The underlying issue seems to be winfsp/winfsp#427 - the "Local Drive" mode uses DefineDosDeviceW, which breaks GetVolumeInformation(). The WinFsp developer suggests mounting via the Windows Mount Manager (\\.\X: instead of X:) as the fix, which requires admin but makes the drive behave like a proper local volume.

It would be great if Cryptomator offered a third option like "WinFsp (Mount Manager)" that uses this method. Admin requirement is fine for this, just needs a note in the UI.

This would probably also help with other apps that have trouble with both WinFsp modes (FreeFileSync comes to mind).

Setup: Windows 10, Cryptomator v1.19.1, TortoiseHg 7.0.1

Considered Alternatives

Related: #2359 (same WinError 1005 with Calibre, workaround there is to switch to network mode — which doesn't help if you need overlay icons)

Anything else?

No response

Brat-Wurscht avatar Mar 15 '26 10:03 Brat-Wurscht