English 中文(简体)
After forced quit, "killall Finder" says "No matching processes..." but PID still exists?
原标题:

Here s one for ya. Upon a forced quit of the Finder with unsuccessful relaunch, "killall Finder" in terminal returns:

"No matching processes belonging to you were found"

Oddly enough, the PID for finder does actually show up after a "ps -A" to reveal all processes. But the time is perpetually listed as 0:00:00, upon repeated PID listings.

I tried the following to manually launch it:

open /System/Library/CoreServices/Finder.app

But it puked:

LSOpenFromURLSpec() failed with error -600 for the file /System/Library/CoreServices/Finder.app.

Any other ideas on a Finder relaunch that don t involve rebooting? (I usually have 6 spaces open at once, each with a handful of apps and it s a pain reloading them all.)

问题回答

I have had similar problem after trying to relaunch Xcode. I got the same failed with error -600.

The problem dissappeared after I inserted sleep in 300 mseconds (sleep 0.3). I created a bash script which did the following:

# softly kill Xcode
killall -SIGINT Xcode
sleep 0.3 

# open Xcode
open /Developer/Applications/Xcode.app




相关问题
Get process id of process started with CreateObject in .NET

I m using VB.NET for a web-application that starts some process using CreateObject, like this: Dim AVObject = CreateObject("avwin.application") After all is done everything get closed down en ...

Getting pid and details for topmost window

Does anyone know how to get the PID of the top active window and then how to get the properties of the window using the PID? I mean properties like process name, program name, etc. I m using Qt under ...

How to get process ID of background process?

I start a background process from my shell script, and I would like to kill this process when my script finishes. How to get the PID of this process from my shell script? As far as I can see variable ...

热门标签