You are not logged in.

#1 2013-05-20 16:18:05

KOMON
Member
Registered: 2013-01-25
Posts: 13

$TMUX being set automatically

I use xbindkeys to start up a new urxvtc running tmux:

.xbindkeysrc
...
"urxvtc -e tmux"
    Mod4 + Return

This set up has always worked well, until yesterday when it stopped doing so. Starting urxvtc with dmenu works fine, and the problem is revealed to be that $TMUX is set already, so when I try to start a new tmux session with Mod4+Return, it errors out with the standard complaint about nesting sessions and closes automatically. When I unset $TMUX, it starts without complaint, but a new urxvtc always has $TMUX set by default, to the same value as before. echoing $TMUX from inside a tmux session gives a different value from this automatic one.

Outside of tmux (this is the one that doesn't change):

[komon@KOMON-HP ~]$ echo $TMUX
/tmp/tmux-1000/default,771,0

Inside of tmux:

[komon@KOMON-HP ~]$ echo $TMUX
/tmp/tmux-1000/default,8358,0

So I did all the cleaning I could think of, pkilled tmux and urxvtd, rm -r'd /tmp/tmux-1000 and .urxvt, checked all my dotfiles for something that would be setting $TMUX, and nothing. The problem persists. The problem is persisting, variables that is.

Any help would be appreciated.

Offline

#2 2013-05-20 17:11:41

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: $TMUX being set automatically

Check all processes' environments to see where it's coming from:

fgrep 'TMUX' /proc/[0-9]*/environ 2>/dev/null

Offline

Board footer

Powered by FluxBB