You are not logged in.

#1 2012-01-09 21:53:28

fourmyle
Member
Registered: 2011-12-15
Posts: 9

i3 i3-sensible-terminal not finding urxvt

I just got a new installation of i3 up and running.  I also installed rxvt-unicode from pacman and the application urxvt exists in my /usr/bin.  According to the docs  for i3-sensible-terminal it should default to urxvt.  However, my terminal is always xterm, even if it I set $TERMINAL to urxvt in my .bashrc.  Not sure what is going here.

Offline

#2 2012-01-09 22:35:03

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

Re: i3 i3-sensible-terminal not finding urxvt

Have you checked that your i3 config file does not have xterm set as default?


Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.

Offline

#3 2012-01-09 23:06:32

fourmyle
Member
Registered: 2011-12-15
Posts: 9

Re: i3 i3-sensible-terminal not finding urxvt

I changed it to force urxvt which works. 

# start a terminal
#bindsym $mod+Return exec i3-sensible-terminal
bindsym $mod+Return exec urxvt

Offline

#4 2012-01-16 22:42:21

patroclo7
Member
From: Bassano del Grappa, ITALY
Registered: 2006-01-11
Posts: 915

Re: i3 i3-sensible-terminal not finding urxvt

The output of 'cat /usr/bin/i3-sensible-terminal' is the following:

#!/bin/sh
# This script tries to exec a terminal emulator by trying some known terminal
# emulators.
#
# Distributions/packagers should enhance this script with a
# distribution-specific mechanism to find the preferred terminal emulator. On
# Debian, there is the x-terminal-emulator symlink for example.
# Please don't touch the first line, though:
[ -n "$TERMINAL" ] && which $TERMINAL >/dev/null && exec $TERMINAL "$@"

# Hopefully one of these is installed:
which xterm >/dev/null && exec xterm "$@"
which urxvt >/dev/null && exec urxvt "$@"
which rxvt >/dev/null && exec rxvt "$@"
which roxterm >/dev/null && exec roxterm "$@"

As you can see, the default is xterm if it is installed. You could define teh $TERMINAL variable. Otherwise the best approach seems to be yours: replace i3-sensible-terminal with urxvt in the config file.

Last edited by patroclo7 (2012-01-16 22:43:15)


Mortuus in anima, curam gero cutis

Offline

#5 2012-03-27 13:52:31

smulloni
Member
Registered: 2012-03-27
Posts: 1

Re: i3 i3-sensible-terminal not finding urxvt

I've had the same problem, and used the same workaround.  But the problem remains: an environmental variable exported in .bashrc isn't available in the shell in which i3-sensible-terminal gets executed.  Anyone know how to fix that?

Offline

#6 2012-03-29 16:02:01

SternGerlachExperiment
Member
Registered: 2009-10-11
Posts: 51

Re: i3 i3-sensible-terminal not finding urxvt

I had this problem too, and it was solved by exporting $TERMINAL in ~/.profile.

Offline

#7 2012-07-06 18:39:49

Montague
Banned
Registered: 2010-06-24
Posts: 93

Re: i3 i3-sensible-terminal not finding urxvt

 

Last edited by Montague (2015-07-28 03:02:44)

Offline

Board footer

Powered by FluxBB