LSOpenURLsWithRole() failed for the application /Applications/.app

I was trying to open the directory in atom from terminal but I was getting “LSOpenURLsWithRole() failed for the application /Applications/atom.app” and I found that this has nothing to do with OS X Yosemite but tmux. Here is what I did

  1. Change Directory(cd) to the tmux-powerline and do “git pull“. Just to update the powerline.
  2. If you don’t have “reattach-touser-namespace” on your system then run”brew install reattach-touser-namespace
    1. open tmux.config
    2. Append the following to the top ” setoption -g default-command “reattach-to-user-namespace -l zsh” ” assuming you already have zsh.
  3. Run “brew info reattach-to-user-namespace” it will give you the following
    reattach-to-user-namespace: stable 2.3, HEADhttps://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard/usr/local/Cellar/reattach-to-user-namespace/2.3 (6 files, 48K) *Built from sourceFrom: https://github.com/Homebrew/homebrew/blob/master/Library/Formula/reattach-to-user-namespace.rb
  4. Run “reattach-to-user-namespace atom -v

I hope this will work for you.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s