gpt4 book ai didi

macos - brew 升级删除了 BigSur 中的停靠栏图标

转载 作者:行者123 更新时间:2023-12-05 04:50:22 24 4
gpt4 key购买 nike

每当我运行 brew update && brew upgrade && brew upgrade --cask 时,它都会更新我的应用程序并从 macOS dock 中删除应用程序图标。每次升级后,我都必须将应用程序图标添加回 Dock。很烦人。这是在 BigSur 上。当我在 Catalina 时,这并没有发生。知道我可能做错了什么吗?

最佳答案

Issue #102721 was created for this on GitHub .它尚未修复。用户 vitorgalvao 将此行为描述为:

Interesting. It seems that after an app has been uninstalled for a fewseconds, it will be auto-removed from the Dock. That’s good smartbehaviour, which happens to clash with our way of doing things.

I agree this is something that should be fixed, but I also have noimmediate solution. Whatever we do is bound to require changes to theupgrade and/or reinstall behaviours, so I wouldn’t expect this to befixed soon.

他还发布了此解决方法,直到问题得到解决:

defaults export com.apple.dock "/path/to/temporary/file"

# Do the upgrade/reinstall as usual

defaults import com.apple.dock "/path/to/temporary/file"
killall Dock

It makes the Dock “flash” by being killed and reopened, but at leastit the result at the end is the desired one.

关于macos - brew 升级删除了 BigSur 中的停靠栏图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67313269/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com