简体   繁体   English

从Dock中隐藏应用程序图标,但在任务切换器中保留图标?

[英]Hide application icon from dock, but keep icon in task switcher?

It's possible to show/hide the application's icon from both the Dock and the Task Switcher by setting the "Application is agent (UIElement)" property to YES/NO. 通过将“Application is agent(UIElement)”属性设置为YES / NO,可以从Dock和Task Switcher中显示/隐藏应用程序的图标。

However, is it possible to have an application show in the Task Switcher (Cmd + Tab), but not appear in the Dock? 但是,是否可以在任务切换器(Cmd + Tab)中显示应用程序,但不会出现在Dock中?

Thanks. 谢谢。

I'm reasonably certain that this is impossible, and that the dock and the app switcher are using the exact same list to decide what should appear in them. 我有理由相信这是不可能的,并且Dock和应用程序切换器使用完全相同的列表来决定它们应该出现在哪些列表中。

The reason for my believing this is that there's actually a procedure for removing an app's icon from the Dock, while the target app is running, that has nothing to do with the LSUIElement key. 我相信这一点的原因是,当目标应用程序正在运行时,实际上有一个从Dock中删除应用程序图标的过程,这与LSUIElement密钥无关。 (It consists, essentially, of renaming/moving the app bundle and then restarting the Dock.) Even doing that, though, the app doesn't appear in the switcher. (它基本上包括重命名/移动应用程序包,然后重新启动Dock。)即使这样做,应用程序也不会出现在切换器中。

(You can find the full procedure on macosxhints.com, if you're interested.) (如果您有兴趣,可以在macosxhints.com上找到完整的程序。)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM