[BUG]: macos下不断设置为md默认打开程序
YonkaFang opened this issue · comments
Describe the bug
To Reproduce
- 安装好yn后,默认md打开程序被设置为yn;
- 手动修改为其他app,生效了,当时再打开md时确实是设置的其他app;
- 过了一段时间之后,再打开md文件,发现默认app又成了yn;
Expected behavior
yn最多只做安装时默认app设置,而不做持续设置
Screenshots
Desktop (please complete the following information):
- Version [e.g. v3.23.0] 最新版本
- OS: [e.g. macOS] macos
- Browser [e.g. chrome, safari]
Additional context
搜了一下,目前看可能是macos本身的一些运行问题导致,参考 https://apple.stackexchange.com/questions/464792/how-to-prevent-an-application-to-automatically-set-itself-as-the-default-applica 用 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -v -apps u
解决了该问题,目前看是恢复了不再重复设置md默认打开方式为yn。
用了一段时间发现又出现该问题: 表现为选择了一个yn打开md文件后。 可能还是macos而不是yn的问题,但考虑到最终用户体验,希望在安装时/设置中有个选项用于设置是否关联为对应文件(md)的默认打开程序,也即允许用户取消该行为。