zquestz/s

got error inside tmux

huanzhang opened this issue · 14 comments

The error message is as below:

$ s foo
[Error] exit status 1

What type of system are you using? Need a bit more info to debug.

@zquestz I am on OS X EI Capitan 10.11.2

at a terminal can you type "open https://google.com"? All this code does is call the open binary which should be present on all OS X systems.

I got this:

LSOpenURLsWithRole() failed with error -600 for the URL https://google.com.

Yeah that is very abnormal. OS X should be able to open any file or url with the open command. Going to look around and see if I can figure out why that happens to you.

@zquestz forgot to tell you that I am a tmux user

Users have talked about the issue here: http://stackoverflow.com/questions/9750475/api-documentation-lsopenurlswithrole

Does it work outside tmux?

Seems this also happens to Atom users, there is a command they use to fix the issue:
atom/atom#3093 - reattach-to-user-namespace

@zquestz It works outside tmux:)

You can probably setup an alias if that reattach app works. alias s="reattach-to-user-namespace s"

I can confirm tmux on linux works fine, so this is an os x specific issue. Wonder if there is a more general solution.

@zquestz woow...It works! Thanks.

Fantastic. Glad we found a solution!