V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
helee9199
V2EX  ›  Visual Studio Code

mac 下 如果 vscode 有更新, 右键打开方式用重复多余的版本

  •  
  •   helee9199 · 2022-06-26 10:58:34 +08:00 · 2163 次点击
    这是一个创建于 642 天前的主题,其中的信息可能已经有所发展或是发生改变。

    rt 这个问题一直困扰我, 感觉微软家下的两个软件 edge 和 vscode 都会有这样的问题 软件更新后 右键打开方式会存在多个版本的选项 甚至重装系统也无法解决。只要软件更新就会出现一个多的选项 网上搜索的解决方法是 /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user;killall Finder;echo "Open With has been rebuilt, Finder will relaunch" 但是 只是当时去掉了 重启电脑后依然存在 有没有大佬告知下 到底如果处理 或者这是微软家的软件 feature ?

    5 条回复    2022-06-26 13:20:03 +08:00
    Jaosn
        1
    Jaosn  
       2022-06-26 11:32:29 +08:00
    没遇到过
    mschultz
        2
    mschultz  
       2022-06-26 11:53:30 +08:00   ❤️ 1
    好像确实是微软家软件 Updater 的 feature ?

    我在 System Preferences - General 中设置默认浏览器的地方看到有两个不同版本的 Edge:


    在左上角苹果菜单 - About This Mac - System Report - Applications 里看到 3 个 Edge ,其中多余的版本都在 ~/Library/Application Support/Microsoft/EdgeUpdater/apps/msedge-stable 里面的。



    我自己 rm -rf 10* 之后,似乎就清净了。
    helee9199
        3
    helee9199  
    OP
       2022-06-26 12:33:10 +08:00
    https://sm.ms/image/Rln9cPzTIyNOsMe

    @mschultz emm 这个好像是 edge 的一个解决方法 但是 vscode 好像没这个目录。
    @Jaosn 是 mac 系统么?你找个 xml 右键 打开方式子菜单里看看有没有。
    helee9199
        4
    helee9199  
    OP
       2022-06-26 12:37:48 +08:00
    @mschultz 感谢一下
    在左上角苹果菜单 - About This Mac - System Report - Applications 里看到 3 个 Edge
    这段给我指明了方向,原来是我之前重装系统后我移动硬盘上的那一版
    删除了就好了。 谢谢
    BenX
        5
    BenX  
       2022-06-26 13:20:03 +08:00
    edeg 的 Updater 锅,傻的一逼。非要存历史版本
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2795 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 11:51 · PVG 19:51 · LAX 04:51 · JFK 07:51
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.