tmux - unable to start any gui application

I am running Ubuntu-gnome 13.04. My default shell is zsh 5.0.0 and I usually run tmux 1.7 in the terminal 3.6.1.

In terminal, if I evince or gedit, the applications start as expected. I can append an &, too.

But if I start tmux and from tmux if I strat evince or gedit, it gives an error:

(evince:19053): EggSMClient-WARNING **: Failed to connect to the session manager: Could not open network socket

How can I correct the situation?

1 Answer

I had a similar error using Tmux under gnome. The thread here:

Pointed me to

where adding the following to my ~/.bashrc file before the aliases fixed the problem.

# If not running interactively, do not do anything
[[ $- != *i* ]] && return
[[ -z "$TMUX" ]] && exec tmux

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like