On Thu Mar 13 03:07:44 2025 +0000, Zhiyi Zhang wrote:
You should add a manifest to the application. See https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-lim.... See Wine's programs/notepad/notepad.rc with regards to how to add a manifest.
I have encountered a problem, how should I verify the long path restriction issue on Windows? I have enabled long paths on virtual machines win10 21H2 and win11 24H2 respectively, and set the value of LongPathsEnable in “HKEYLOCAL\SYSTEM\CurrentControlSet\Control\FileSystem” to 1. However, whether using Python 3.13's open() function, Neither the copy command nor notepad.exe can create a file with a path length of 500. I also tried adding the following content to the manifests of wine's notepad.exe and kernel32_test.exe, but still couldn't create files with path lengths exceeding 260 on Windows 10 and Windows 11.
``` <application xmlns="urn:schemas-microsoft-com:asm.v3"> <windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings"> ws2:longPathAwaretrue</ws2:longPathAware> </windowsSettings> </application> ```