i3-sensible-terminal; execution result differs from shortcut to terminal

asked 2015-10-10 11:02:41 +0000

this post is marked as community wiki

This post is a wiki. Anyone with karma >100 is welcome to improve it.


in my i3 config, i have the line

bindsym $win+Return exec i3-sensible-terminal

when i execute that shortcut, it executes xfce4-terminal (my former default terminal, which i want no longer to be default)

when i execute i3-sensible-terminal in my terminal, it launches konsole, which is expected.

the Terminal environment variable seems also properly set.

% env | grep TERMINAL

$TERMINAL is set by zshenv:

export TERMINAL=konsole

any ideas?

edit retag flag offensive close merge delete


have you restarted your X session? The environment i3 see when it was launched is different than your current modified environment.

tigrezno gravatar imagetigrezno ( 2015-10-10 12:54:18 +0000 )edit

Thanks, i added the export variable to .xsession and now it starts correctly. But, now i have two separate TERMINAL definitions, in .xsession and /etc/zshenv. is there a global file i can use for my environment variables that will recognized by all programs, including i3?

toogley gravatar imagetoogley ( 2015-10-10 16:00:13 +0000 )edit