osx - open Safari and Finder failed in tmux

07
2014-07
  • user805627

    OS X 10.9.2, tmux 1.9a install via brew. In tmux:

    $ open /System/Library/CoreServices/Finder.app                                                                                                                           
    LSOpenURLsWithRole() failed with error -600 for the file /System/Library/CoreServices/Finder.app.
    $ open /Applications/Safari.app                                                                                                                                          
    LSOpenURLsWithRole() failed with error -600 for the file /Applications/Safari.app.
    $ open /Applications/Xcode.app
    (Success)
    

    Out tmux:

    $ open /System/Library/CoreServices/Finder.app                                                                                                                           
    (Success)
    $ open /Applications/Safari.app                                                                                                                                          
    (Success)
    $ open /Applications/Xcode.app
    (Success)
    

    What causes this problem, and how to fix it?

  • Answers
    Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

    Related Question

    osx - After forced quit, “killall Finder” says “No matching processes…” but PID still exists?
  • Old McStopher

    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.)


  • Related Answers
  • Sacrilicious

    There's easy and slightly harder. First easy, you could probably use Activity Monitor to force quit it.
    Harder, and the reason you're getting this message, is because your user didn't launch Finder, the system 'owns' it - you can only kill it if you elevate your privileges to super user(!), sudo killall Finder, and then it'll ask for your password(assuming your user account is an admin, otherwise this wouldn't work) just like Activity Monitor would. In certain *nix distros you can kill straight from top, as well.

    Worse comes to worse, you could force log yourself off in a pinch, you could killall loginwindow(your user owns that one while you're logged in)