FS#21007 - [vte] - TERM environment variable needs set
Attached to Project:
Arch Linux
Opened by Alois Nespor (anespor) - Thursday, 30 September 2010, 19:52 GMT
Last edited by Ionut Biru (wonder) - Friday, 08 June 2012, 23:08 GMT
Opened by Alois Nespor (anespor) - Thursday, 30 September 2010, 19:52 GMT
Last edited by Ionut Biru (wonder) - Friday, 08 June 2012, 23:08 GMT
|
Details
Description:
Additional info: [alois@lenovo ~]$ su Password: [root@lenovo alois]# mc TERM environment variable needs set. [root@lenovo alois]# packages: roxterm 1.19.1-1 vte 0.26.0-1 Steps to reproduce: run "mc" under roxterm previous version of "vte" works without problem with roxterm |
This task depends upon
Closed by Ionut Biru (wonder)
Friday, 08 June 2012, 23:08 GMT
Reason for closing: Not a bug
Additional comments about closing: Reason for request: not a VTE bug, see my comment at the bottom
Friday, 08 June 2012, 23:08 GMT
Reason for closing: Not a bug
Additional comments about closing: Reason for request: not a VTE bug, see my comment at the bottom
http://git.gnome.org/browse/vte/commit/?h=vte-0-26&id=0574bcfbd5c5925458ecdea0e6bbac6d65e30efc
if you don't know how, let me know and i'll compile you a package. don't forget to specify if you are on x86_64 or i686
(I remove "export TERM=xterm" from /etc/profile, and run "source /etc/profile")
I used patch from git with "patch -Rp1 -i ../revert.patch" and compile vte-0.26 again. Logout, log in.
Work now fine as old version 0.24.3
How undeclare TERM?
i want to be sure is not exported anymore
[alois@lenovo ~]$ mc
TERM environment variable needs set.
[alois@lenovo ~]$ su
Heslo:
[root@lenovo alois]# pacman -Qi vte
Jméno : vte
Verze : 0.26.0-1
URL : http://www.gnome.org
Licence : LGPL
Skupiny : Nic
Poskytuje : Nic
Závisí na : gtk2>=2.22.0
Volitelné záv. : Nic
Požadovaný : roxterm
Konfliktní s : Nic
Nahrazuje : Nic
Vel. instalace : 3124,00 K
Zabalil : Ionut Biru <ibiru@archlinux.org>
Architektura : x86_64
Datum sestavení: Ne 26. září 2010, 21:10:58 CEST
Datum instalace: Pá 1. říjen 2010, 21:34:10 CEST
Důvod instalace: Výslovně nainstalován
Instal. skript : Ne
Popis : Virtual Terminal Emulator library
[root@lenovo alois]# pacman -U /home/ARCH/NEW/vte-0.26.0-1.1-x86_64.pkg.tar.xz
řeší se závislosti..
kontrolují se interní konflikty...
Cíle (1): vte-0.26.0-1.1
Celková velikost stahování: 0,00 MB
Celková velikost instalace: 3,05 MB
Pokračovat v instalaci? [A/n]
kontroluje se integrita balíčků...
(1/1) kontrola konfliktů souborů [########################################] 100%
(1/1) aktualizace vte [########################################] 100%
[root@lenovo alois]#
Closed all other roxterm terminals, run roxterm again and can run mc. Works for me without /etc/profile hack.
revert.patch (2.9 KiB)
The error message I am getting is the TERM value is set to "dumb", which cripples a lot of apps (irssi amongst others).
http://pkgbuild.com/~ioni/vte/
start from 0.25.1 and upgrade until it breaks it
0.25.1 does not.
edit: should be somewhere between 0.23.5 and 0.25.1
Right Click > Preferences > Advanced Tab > $TERM setting: --> 'xterm-256color'
Then restart, and type in shell:
$ echo $TERM
xterm
i cannot fix it myself
initial bug was: https://bugzilla.gnome.org/show_bug.cgi?id=631589
You need to set TERM with vte_pty_set_term() on a VtePty object before starting VTE. An existing TERM variable in the environment is ignored, because then it would be set properly when starting from another terminal.
vte_terminal_fork_command_full() doesn't let you run vte_pty_set_term() (since it creates it's own pty object, and it has to be set before starting it). That's possibly a bug, but could also be called a design decision (it's just a high-level convenience function). So the Xfce devs would have to switch to the slightly lower level way of starting up VTE, otherwise they're stuck with $TERM being xterm.
https://bugzilla.gnome.org/show_bug.cgi?id=640940 <- For reference, this was a bug report by an Xfce developer about it, and the response was basically NOTABUG/WONTFIX, but the issue never had the status changed.