processing / processing/processing4
Implement reliable getLibraryFolder() and getDocumentsFolder() methods in MacPlatform
还没有人认领这个 Issue。
- 主要语言
- Java
- 星标
- 497
- 派生
- 183
- 平均合并
- 4 小时 39 分钟
- 30 天内合并 PR
- 3
描述
Created by: benfry
With the removal of FileManager in JDK 9+ we no longer have a means of getting the Documents and Library folders on macOS.
For now, it's possible to use System.getProperty("user.home") and tack Library or Documents onto the end of that, however I'm guessing that it won't be possible in future OS releases, or perhaps even with a signed version of the app, due to security-related changes to how file system access works.
(Appending these folder names works now even on localized systems, since the native language shown is not what's used internally by the OS.)
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先定位 MacPlatform 及其 getLibraryFolder() 和 getDocumentsFolder() 方法。研究用于在不使用 FileManager 的情况下解析这些文件夹的受支持 macOS API,然后在本地化系统和已签名应用程序中验证结果;完成的标准是,在当前 macOS 版本上,这两个方法都能可靠地返回预期的文件夹。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- java, macos
- 领域
- desktop, operating-systems
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100