Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tmux, launch_msg(): Socket is not connected #56

Closed
ColinHebert opened this issue Mar 20, 2012 · 5 comments
Closed

tmux, launch_msg(): Socket is not connected #56

ColinHebert opened this issue Mar 20, 2012 · 5 comments
Labels

Comments

@ColinHebert
Copy link
Contributor

When I start automatically tmux I get this message.

After a small hunt, it seems that it comes from tmux new-session -d -s "$tmux_session" "$SHELL -l" in the tmux plugin, in particular the "$SHELL -l" part (it's not just the -l option, it's the entire argument).

I'm not sure that's important to force the shell like this, I removed it and it still works.

@sorin-ionescu
Copy link
Owner

It's telling tmux to launch a login shell. I remember that error. It believe it's a tmux bug. You'll have to google.

By the way, tmux is pretty buggy. I had the thing crash OS X multiple times with kernel panics. I had to power cycle the machine.

@ColinHebert
Copy link
Contributor Author

Yes, I've already done my research. It doesn't seem to be due to tmux (well, not entirely), but to launch_ctl .
I know it's to start a login shell, but I wonder if it's important to force it.

The documentation states that by default, default-command is executed, and if default-command isn't set

The default is an empty string, which instructs tmux to create a login shell
using the value of the default-shell option.

And by default, default-shell

When started tmux tries to set a default value from the first suitable of the SHELL environment variable,
the shell returned by getpwuid(3), or /bin/sh.

So that's basically what tmux is already doing.

@sorin-ionescu
Copy link
Owner

Ok. Then I suppose it's safe to remove. The screen plugin was written first and the tmux plugin is based on it.

@ColinHebert
Copy link
Contributor Author

Just, more information on the issue: https://github.com/ChrisJohnsen/tmux-MacOSX-pasteboard

If you don't use this reattach-to-user-namespace you will still have the issue.
Right now I have

set-option -g default-command "reattach-to-user-namespace -l $SHELL -l"

in my .tmux.conf and it works fine.

@sorin-ionescu
Copy link
Owner

Right, I use that to make pbcopy/pbpaste work. How does it behave on Linux?

lildude pushed a commit to lildude/prezto that referenced this issue Jan 12, 2014
kodelint pushed a commit to kodelint/prezto that referenced this issue Nov 15, 2016
RIT80 pushed a commit to RIT80/prezto that referenced this issue Jan 25, 2022
RIT80 added a commit to RIT80/prezto that referenced this issue Jan 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants