! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
$TERM setting and other settings are not saved in the terminarc config file
Status:
RESOLVED: DUPLICATE
Product:
Xfce4-terminal
Component:
General

Comments

Description Andrea Antolini 2010-04-17 16:15:12 CEST
Created attachment 2942 
preferences windows 1st time / 2nd time

Hi all..  I always used Terminal as standalone apps inside a GNOME 2.X
environment since long time (compiling the app from scratch with its requirements);

But in these days (I guess after some updates on my linux box) I noticed  a strange issue with Terminal 4.x : 

executing any shell program inside Terminal (e.g MC or HTOP) I've got this error :

$htop
Error opening terminal: unknown.

or

$mc
Unknown terminal: 
Check the TERM environment variable.
Also make sure that the terminal is defined in the terminfo database.
Alternatively, set the TERMCAP environment variable to the desired
termcap entry.

others consoles like xterm of gnome-terminal works fine 

I tried to investigate a little  and I discoverd that some settings in the terminalrc config file are not saved (one of these is  the $TERM setting  and this cause the issue ) 

e.g. this is the first config file created at the first execution..

cat $home/.config/Terminal/terminalrc 

[Configuration]
MiscAlwaysShowTabs=FALSE
MiscBell=FALSE
MiscBordersDefault=TRUE
MiscCursorBlinks=FALSE
MiscCursorShape=TERMINAL_CURSOR_SHAPE_BLOCK
MiscDefaultGeometry=80x24
MiscInheritGeometry=FALSE
MiscMenubarDefault=TRUE
MiscMouseAutohide=FALSE
MiscToolbarsDefault=FALSE
MiscConfirmClose=TRUE
MiscCycleTabs=TRUE
MiscTabCloseButtons=TRUE
MiscTabCloseMiddleClick=TRUE
MiscTabPosition=GTK_POS_TOP
MiscHighlightUrls=TRUE
TitleInitial=
Term=
WordChars=

as you can see last three settings are not saved (in the preferecences windows at first execution the correct value appear but closing the windows they are not written inf the config file and next time you open the preferences windows fields are empty (see attachment)

if you press the button "reset the compatibiliry mode..." in the advanced tab the $TERM setting is defined (xterm) but in any case is not saved in the config file when you close the preferences windows.

Based on Terminal requirements this is my version of installed libs
- exo 0.3.106
- vte 0.22.5
- gtk 2.18.9
- glib 2.22.5

while the linux box is :

- slackware 13
- kernel 2.6.33.2
- gnome 2.28.3 (gnomeslackbuild)

Andrea from Italy
Comment 1 Nick Schermer editbugs 2010-04-17 18:33:49 CEST

*** This bug has been marked as a duplicate of bug 6331 ***

Bug #6398

Reported by:
Andrea Antolini
Reported on: 2010-04-17
Last modified on: 2010-04-17

People

Assignee:
Nick Schermer
CC List:
0 users

Version

Attachments

preferences windows 1st time / 2nd time (129.58 KB, image/jpeg)
2010-04-17 16:15 CEST , Andrea Antolini
no flags

Additional information