Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: macos下不断设置为md默认打开程序 #332

Open
YonkaFang opened this issue Apr 9, 2024 · 2 comments
Open

[BUG]: macos下不断设置为md默认打开程序 #332

YonkaFang opened this issue Apr 9, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@YonkaFang
Copy link

Describe the bug

To Reproduce

  1. 安装好yn后,默认md打开程序被设置为yn;
  2. 手动修改为其他app,生效了,当时再打开md时确实是设置的其他app;
  3. 过了一段时间之后,再打开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

@YonkaFang YonkaFang added the bug Something isn't working label Apr 9, 2024
@YonkaFang
Copy link
Author

搜了一下,目前看可能是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。

@YonkaFang YonkaFang reopened this Apr 30, 2024
@YonkaFang
Copy link
Author

用了一段时间发现又出现该问题: 表现为选择了一个yn打开md文件后。 可能还是macos而不是yn的问题,但考虑到最终用户体验,希望在安装时/设置中有个选项用于设置是否关联为对应文件(md)的默认打开程序,也即允许用户取消该行为。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant