Skip to content

Conversation

Blinue
Copy link
Owner

@Blinue Blinue commented Jun 30, 2024

#894 消除了大部分 MAX_PATH,然后 c24c32e 消除了剩下的,是时候启用长路径支持了。

注意虽然程序支持长路径,用户仍需要修改注册表才能起作用,见 Maximum Path Length Limitation。Python 等软件在安装时可以选择自动修改注册表,但我们尊重用户的配置就行,因为 Windows 目前对长路径的支持很差。需要长路径支持的用户应该有能力自己修改注册表,或者已经在安装其他软件时自动修改了。

@Blinue Blinue added the enhancement New feature or request label Jun 30, 2024
@Blinue Blinue merged commit bc3f7a9 into dev Jun 30, 2024
@Blinue Blinue deleted the long-path branch June 30, 2024 09:18
@Blinue
Copy link
Owner Author

Blinue commented May 13, 2025

更进一步的测试发现,仍不支持在长路径下启动 Magpie。这主要因为 XAML Islands 不支持长路径,会在IApplicationFactory::CreateInstance 中崩溃。

还有一个有趣的现象:路径长度接近极限时启动 Magpie 会使资源管理器崩溃,程序本身可以正常运行,只是图标不能显示。此时 LoadImage 和 LoadIconMetric 返回 NULL,但 last error 为 0。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant