MacOS – LSOpenURLsWithRole() failed with error 10810 in iTerm2 running tmux on Yosemite

itermmacostmuxzsh

[~%]open ~/Pictures/upload.png
LSOpenURLsWithRole() failed with error -10810 for the file /Users/bryanhunt/Pictures/upload.png.

Before this update I used to be able to open images, PDFs, etc. from the command line.

Now I have to open the directory, and click on the file to open it, which is a waste of my finger strength.

Anyone know how to make it work again?

Best Answer

The fix.

Install homebrew.

Install reattach-to-user-namespace:

 brew install reattach-to-user-namespace

Then create an alias which your shell can use:

 alias open='reattach-to-user-namespace open'