gnome-terminal configuration files

Asked by Rytis Paskauskas

Where are gnome-terminal configuration files, e.g. custom profiles, stored? Specifically, I want to change the default geometry, so that when I click 'term' button, I get the window of specific "A" x "B" size and it's top left corner is at "C,D" coordinate.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu gnome-terminal Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Cesare Tirabassi (norsetto) said :
#1

I don't think that what you are looking for exists. Gnome-terminal uses the Gnome registry to store configuration information (for instance the default profile is in /apps/gnome-terminal/profiles/Default).

Revision history for this message
Kitesonic74 (daniel-wedepohl) said :
#2

Here's my tip:

right-click on "Terminal", choose properties and type after the command: "gnome-terminal --geometry=100x30".
for me it's the best result and view.
hope to helped you.

Revision history for this message
Kitesonic74 (daniel-wedepohl) said :
#3

edit: sorry, I have the gnome-Terminal as Starter of the Top Panel, there you can open the properties (not in Applications).

Revision history for this message
Cesare Tirabassi (norsetto) said :
#4

Yes, thats a standard option for X applications. Thanks for the head-up!

--geometry WIDTHxHEIGHT+XOFF+YOFF (where WIDTH, HEIGHT, XOFF, and YOFF are numbers) for specifying a preferred size and location for this application's main window.

Revision history for this message
Rytis Paskauskas (gte203x) said :
#5

Thanks, Cesare, Kitesonic74..
Your tips solve the problem on per-user base.
I am also interested in how to globally set the terminal properties. The outcome should look something like
Gnome-Terminal*Geometry: 120x35+0+0
The issues are 1) what file, 2) what's the correct line for that.

Revision history for this message
Rytis Paskauskas (gte203x) said :
#6

btw, my Ubuntu Feisty doesn't have an /apps directory...
Perhaps /etc/gnome can be substituted for /apps/gnome?

Revision history for this message
Cesare Tirabassi (norsetto) said :
#7

Rytikis,

I spent quite a deal of time this afternoon trying with:

.Xdefaults
.Xresources
All sorts of registering with xrdb
X.defaults-hostname
/etc/X11/app-defaults

and with all sorts of setting of related environment variables.
I even tried to look into the init scripts.

I just think that gnome-terminal doesn't honour any of those. Short of having a look at the source code I'm out of options.

Re. your question on the Gconf registry, thats in ~/.gconf, but you can more easily use the Gnome Configuration Editor to browse and edit it (its in Menu->System Tools)

Re. the globality, wouldn't changing the desktop file be enough?

Revision history for this message
curlynostrill (currlydr) said :
#8

gnome-terminal

A little bit late but I googled this looking for my answer. I wanted to just transfer all my gnome terminal profiles over to a new Ubuntu install. I finally found my old config files under /media/sdb#/<my-home>/.gconf/apps/gnome-terminal/profiles/. This directory was not on my new /home/me/.gconf/apps/ because I had not made any profiles yet. Once I created a new profile this directory appeared at the corresponding location on the new /home/me/... Then I just copied the individual profile folders and the bg .jpg's into the new location and edited the location of the bg's manually in the .xml files with gedit. Might have been almost as easy to just create them again but I had some time.

Revision history for this message
curlynostrill (currlydr) said :
#9

I see now you were asking about something somewhat different. Never mind.

Revision history for this message
Ralph Corderoy (ralph-inputplus) said :
#10

You can't change it without editing the termcap definition, which is hideous and affects all gnome-terminals on the machine! Also, see bug https://bugs.launchpad.net/ubuntu/+source/vte/+bug/217167 for more detail.

Can you help with this problem?

Provide an answer of your own, or ask Rytis Paskauskas for more information if necessary.

To post a message you must log in.