正在运行的应用程序未显示在 Dock 中

正在运行的应用程序未显示在 Dock 中

我注意到我在 Mac OS X (10.5) 上运行的应用程序没有显示在 Dock 中?即使我在 Dock 中有应用程序的图标,当我单击应用程序启动时,它也不会显示“蓝色突出显示”。

有人可以请问我该如何解决这个问题吗?

谢谢。

答案1

Google 带我来到这里,虽然 ViggoV 的解决方案对我来说不起作用,但它让我想到了其他可行的方法。有一个终端命令可以重新启动 Dock:

$ killall -9 Dock

好吧,从技术上讲,如果我理解正确的话,它会关闭 Dock,但另一个进程注意到它没有运行并重新启动它。这个-9信号是“必杀”。

首先关闭未出现在 Dock 中的应用程序可能会有所帮助。我可以通过 Exposé 选择它。

查看killall(1) Mac OS X 手册页

答案2

尝试创建一个新用户并在那里进行测试。如果新用户可用,则删除 Dock 的偏好设置,以供不可用的用户使用。(~/Library/Preferences)

com.apple.dock.plist com.apple.dock.db

请记住,如果您不备份这些内容,Dock 上的所有图标和任何自定义内容都将丢失。完成备份后,注销并再次登录以重新加载 Dock(如果需要,您可以从终端执行“Killall Dock”)。

答案3

我在这里找到了同一问题的解决方案: http://www.acmetech.com/blog/2005/09/30/mac-os-x-restart-the-dock/

Restart your OS X Dock from the Terminal

Open Terminal.app from /Applications/Utilities/Terminal
Type the command: "ps -auxww | grep Dock", then press the Enter key. You should see a listing similar to this (note, I’ve had to wrap the longer lines):

$ ps -auxww | grep Dock
wkw   7563   0.0  1.0   149188  10112  ??  S
         5:42PM   0:05.46 /System/Library/…/Dock -psn_0_128188417

You want to locate the Process ID for the Dock, that’s the first number you see reading from left to right (the number underlined above). My Dock’s PID is 7563. Now substitute your Dock’s PID into the command in the next step (where it says your_pid). We will now terminate that process with the kill Unix command.
Type into Terminal, "kill -HUP your_pid" and press the Enter key.

相关内容