purocean / yn

A highly extensible Markdown editor. Version control, AI Copilot, mind map, documents encryption, code snippet running, integrated terminal, chart embedding, HTML applets, Reveal.js, plug-in, and macro replacement.

Home Page:https://yank-note.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

YonkaFang opened this issue · comments

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

搜了一下,目前看可能是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)的默认打开程序,也即允许用户取消该行为。