dschep / ntfy

🖥️📱🔔 A utility for sending notifications, on demand and when commands finish.
http://ntfy.rtfd.io
GNU General Public License v3.0
4.82k stars 214 forks source link

ntfy doesn't work inside of tmux on OS X #117

Open eykd opened 8 years ago

eykd commented 8 years ago

I've got ntfy working beautifully in OS X on Python 3.5... when in a bare iTerm2 session. I typically work inside of tmux though, and inside of tmux, ntfy send test does nothing, and the shell integration does nothing. tmux is black magic to me, so I'm not sure what difference it makes, or if this issue is special to OS X, or a general problem across platforms.

dschep commented 8 years ago

Very odd. I could see tmux messing up the shell integration since it has focus detection support and iTerm2 uses tmux under the hood IIRC. However, there's no reason AFAICT that ntfy send test shouldn't work :cry:

eykd commented 8 years ago

FWIW same behavior under Terminal.app: works in the base shell, but not inside of a tmux session.

dschep commented 8 years ago

In both the plain shell & in tmux can you give me the output of: which ntfy and echo $PATH

eykd commented 8 years ago

From a normal shell:

$ which ntfy
/usr/local/bin/ntfy
$ echo $PATH
/usr/local/Cellar/pyenv-virtualenv/20160112/shims:/usr/local/Cellar/pyenv/20160726/libexec:/usr/local/var/pyenv/shims:/usr/local/p/versions/python:/usr/local/share/npm/bin:/usr/local/texlive/2011/bin/x86_64-darwin:/Users/deyk/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/Users/deyk/.rvm/bin:/Users/deyk/code/js/devkit/bin:/Users/deyk/code/go/bin:/usr/local/opt/go/libexec/bin

Inside tmux:

$ which ntfy
/usr/local/bin/ntfy
$ echo $PATH
/usr/local/Cellar/pyenv-virtualenv/20160112/shims:/usr/local/Cellar/pyenv/20160726/libexec:/usr/local/var/pyenv/shims:/usr/local/p/versions/python:/usr/local/share/npm/bin:/usr/local/texlive/2011/bin/x86_64-darwin:/Users/deyk/bin:/usr/local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/opt/X11/bin:/usr/local/Cellar/pyenv-virtualenv/20160112/shims:/usr/local/Cellar/pyenv/20160726/libexec:/usr/local/var/pyenv/shims:/usr/local/p/versions/python:/usr/local/share/npm/bin:/usr/local/texlive/2011/bin/x86_64-darwin:/Users/deyk/bin:/usr/local/sbin:/Users/deyk/.rvm/bin:/Users/deyk/code/js/devkit/bin:/Users/deyk/code/go/bin:/usr/local/opt/go/libexec/bin:/Users/deyk/.rvm/bin:/Users/deyk/code/js/devkit/bin:/Users/deyk/code/go/bin:/usr/local/opt/go/libexec/bin
eykd commented 8 years ago

In case it's not clear, I am using pyenv, but I have ntfy installed with a non-pyenv-managed Python 3.5, actually a framework install via Homebrew. I made sure that this is the only ntfy instance I have installed.