After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 155147 - gnome-terminal default size only by setting --geometry
gnome-terminal default size only by setting --geometry
Status: RESOLVED FIXED
Product: gnome-terminal
Classification: Core
Component: general
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Please follow http://live.gnome.org/C...
: 68683 88991 303562 307766 321713 341868 347946 376934 411474 567178 572868 589070 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-10-11 23:12 UTC by Oli
Modified: 2010-09-23 21:10 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Proposed patch (9.21 KB, patch)
2005-06-15 13:46 UTC, Martin Ejdestig
none Details | Review
Make new terminals inherit the parents geometry (2.65 KB, patch)
2006-04-02 14:07 UTC, gregm
rejected Details | Review
adds 'maximized' as a possible value for --geometry (1.04 KB, patch)
2006-11-05 05:07 UTC, Deomid Ryabkov
rejected Details | Review
Adds a size property in the profile (9.67 KB, patch)
2009-03-11 00:34 UTC, Simon van der Linden
needs-work Details | Review

Description Oli 2004-10-11 23:12:44 UTC
It took me about half an hour to find out how to change the default size of
gnome-terminal

(For all on the hunt on this: try 
#gnome-terminal --geometry=110x35+50+50
to get an idea...)

You might want to consider adding this to the help pages.

Or maybe even let gnome-terminal parse some config file
in which somebody can define a --geometry flag.
And once you're at this, you might want to add something to
the profiles settings, so anyone can find it...

kind regards,
Oli
Comment 1 Martin Ejdestig 2005-06-15 13:41:31 UTC
*** Bug 307766 has been marked as a duplicate of this bug. ***
Comment 2 Martin Ejdestig 2005-06-15 13:46:33 UTC
Created attachment 47802 [details] [review]
Proposed patch

Sorry for the spam caused by opening bug 307766.

By the way, what's up with gnome-terminal maintainance? There hasn't been much
activity this year. Just wondering.
Comment 3 Christian Kirbach 2005-06-15 15:19:40 UTC
*** Bug 303562 has been marked as a duplicate of this bug. ***
Comment 4 Christian Kirbach 2005-06-15 15:21:37 UTC
Raising version to 2.10.x as it is still valid

HIGH priority and confirming because of a patch.

Martin you may want to file a sperate report about the option missing in the 
docs. One issue per report, please.
Comment 5 Martin Ejdestig 2005-06-15 15:48:10 UTC
You guys could do that if you think it's still needed. Almost no other
command-line option is documented in the gnome-terminal docs. I don't know if
this is the norm or if gnome-terminal is an exception. Feel free to investigate.
I'm no good at writing documentation anyway. ;)

I don't know if you got spammed when I commented bug 305268 and bug 68683. If
not, now you have been. ;) Apologies if you were but haven't gotten to them yet
or don't have permission to close them or something.
Comment 6 Kjartan Maraas 2005-08-19 20:52:33 UTC
*** Bug 68683 has been marked as a duplicate of this bug. ***
Comment 7 Kjartan Maraas 2005-09-20 11:41:36 UTC
*** Bug 88991 has been marked as a duplicate of this bug. ***
Comment 8 Joachim Frieben 2006-03-14 20:02:42 UTC
Still no possibility to set the default size permanently in "GNOME Terminal 2.14.0"; neither in the profile panel nor by means of "gconf-editor". This is major loss of functionality! Particularly annoying is that even opening a new terminal window from the "Open Terminal" menu button of an already present terminal window does not respect the size of the parent window. This blocks even the possibility of using an alias in combination with the geometry attribute to obtain terminal windows of the desired size.
Comment 9 gregm 2006-04-02 14:07:09 UTC
Created attachment 62603 [details] [review]
Make new terminals inherit the parents geometry

This patch will make new terminals open with the parents geometry.
Comment 10 Diego Torres Milano 2006-04-19 10:57:53 UTC
Inheritance of parent geometry should have to be configurable. This is not always the desired bahavior.
Comment 11 Guilherme de Siqueira Pastore 2006-05-15 20:35:37 UTC
*** Bug 341868 has been marked as a duplicate of this bug. ***
Comment 12 Joachim Frieben 2006-07-26 18:23:10 UTC
Requested feature still missing in version 2.15.2.
Comment 13 Olav Vitters 2006-07-26 18:32:38 UTC
Fixed bugs are marked resolved/verified fixed. This one is open.
Comment 14 Olav Vitters 2006-07-27 23:12:04 UTC
*** Bug 347946 has been marked as a duplicate of this bug. ***
Comment 15 Diego Torres Milano 2006-08-09 15:45:31 UTC
(In reply to comment #12)
> Requested feature still missing in version 2.15.2.
> 

You can find an alternate solution using gnome-terminal-launcher applet (http://gnome-tla.sf.net) where you can specify gnome-terminal options in GConf.
Comment 16 Joachim Frieben 2006-09-09 17:30:38 UTC
Requested feature still missing in version 2.16.0.
Comment 17 Olav Vitters 2006-09-09 18:50:51 UTC
(In reply to comment #16)
> Requested feature still missing in version 2.16.0.

If and when it is fixed, the bug will be marked fixed. Repeating above comment is annoying.

Personally, I think it would be better to have something GNOME-wide. Eg, something that can be stored in a .desktop file. Then people can set the window size in the properties of a launcher.
Comment 18 Martin Ejdestig 2006-09-09 19:51:23 UTC
http://mail.gnome.org/archives/desktop-devel-list/2006-August/msg00142.html

Sounds like a better idea than some .desktop stuff that only works for GNOME apps and not for GTK+ apps. ;)

Also, I don't see why the size shouldn't be automatically remembered. (At by least default. I guess people who want a specific size and don't want new sizes to be rememberd just can set the keys to what they want and then lock them down.)
Comment 19 Deomid Ryabkov 2006-11-05 05:07:34 UTC
Created attachment 76008 [details] [review]
adds 'maximized' as a possible value for --geometry

yes, geometry handling is broken and should be fixed.

this patch + "--geometry=maximized" in the launcher = one less click for me to do when i start the terminal :)

might not be the way to go for the mainline, but still useful for someone like me.
Comment 20 Darxus 2006-11-09 21:10:10 UTC
Creating a file $HOME/.Xresources with the contents:

gnome-terminal*Geometry: 95x25 
xterm*Geometry: 95x25 

Works for xterm, not for gnome-terminal.  This is documented in the X(7) man page:  http://ftp.x.org/pub/X11R7.0/doc/html/X.7.html

This lack of functionality is particularly frustrating without the ability to tile windows.

My preference for a default size would be to basically fit as many 80x24 terminals as you can on a desktop in the specified font and then stretch them out to fill the gaps between the terminals.  For example, four 80x24 gnome-terminals with a Monospace 13 font will fit on one of my desktops.  I can then resize them all to 94x25 and they still fit.  
Comment 21 Mariano Suárez-Alvarez 2006-11-15 17:43:52 UTC
Darxus, nothing in gnome looks at the X resources.
Comment 22 Joachim Frieben 2006-11-16 17:57:10 UTC
This is -not- the problem. What actually is the problem is that it neither memorizes the user settings nor does it allow to set the geometry via "gconf-editor" or "Preferences".
Comment 23 Mariano Suárez-Alvarez 2006-11-16 18:12:27 UTC
Yes, that has been amply established.

I was just remarking that changing ~/.Xresources is *expected* not to have any effect on anything.
Comment 24 Mariano Suárez-Alvarez 2006-11-21 15:39:36 UTC
*** Bug 376934 has been marked as a duplicate of this bug. ***
Comment 25 Jonh Wendell 2007-01-29 13:29:34 UTC
*** Bug 321713 has been marked as a duplicate of this bug. ***
Comment 26 drolyk 2007-06-30 12:59:13 UTC
What about an option to set custom default size ? 
Comment 27 Christian Nolte 2007-07-01 18:12:40 UTC
I would like to see both things here: 

- allow the user to define a custum default size (in profile properties).
  so: +1 to comment #26

- allow the user to switch on/off (checkbox) a mode in which gnome-terminal *remembers* the size at the time it was closed before (in profile properties).
Comment 28 Paul Gear 2008-02-23 13:04:49 UTC
From the user perspective, allowing us to set geometry in a profile makes a lot of sense.  This is especially useful for windows that are just left open tailing system logs.
Comment 29 Diogo Santos 2008-03-31 19:56:31 UTC
I had the same problem, when I was using the command:
$ gnome-terminal --geometry=125x23
in gnome-terminal the window open with the size of 124x23.

When I was try the same command in a icon on desktop bar, it doesn't function.
Now I discovery that I have to use a new option:
$ gnome-terminal --geometry=125x23 --disable-factory

Now it function almost ok, because I specify the size 125x23 and all the time it open the window with 124x23. I have to adjust manually.

Why this Happen?
Comment 30 Christian Persch 2008-05-31 20:10:35 UTC
I don't think we should add nonstandard formats for --geometry that are not supported for this fairly standard option in other programmes. 
Bug 305268 has a better patch for adding a way to maximise from the commane line.
Comment 31 Christian Persch 2008-06-15 21:04:50 UTC
*** Bug 411474 has been marked as a duplicate of this bug. ***
Comment 32 Christian Persch 2009-02-23 16:57:16 UTC
*** Bug 572868 has been marked as a duplicate of this bug. ***
Comment 33 Artur Rona 2009-02-23 19:26:42 UTC
4 years and 4 months and bug is still present...
Comment 34 Christian Persch 2009-02-23 19:30:42 UTC
Please observe proper bugzilla etiquette [https://bugzilla.mozilla.org/page.cgi?id=etiquette.html] and refrain from adding useless comments to bugs. It will not make bugs be fixed any faster.
Comment 36 Jack 2009-02-27 17:56:40 UTC
+1 on comment #27. That's the exact feature set I would like to see.

I found a workaround for the default size thing, which definitely works on Fedora and Ubuntu:

Edit /usr/share/vte/termcap/xterm. Change the line:

    :co#80:it#8:li#24:\

to something like 

    :co#111:it#8:li#33:\

That will set the columns to 111 and rows to 33.
Comment 37 Christian Nolte 2009-02-27 18:47:37 UTC
Don't forget that we also could need something gconf-based which gives us the option that gnome-terminal finally remembers the last size it was closed with.
Comment 38 Christian Persch 2009-03-02 17:50:26 UTC
*** Bug 567178 has been marked as a duplicate of this bug. ***
Comment 39 Simon van der Linden 2009-03-11 00:34:13 UTC
Created attachment 130440 [details] [review]
Adds a size property in the profile 

Here is a first implementation of a size property in the profile, which is used to specify the size of a terminal opened in a new window (as long as --geometry is not set).

A potential downside with this approach is that the termcap profiles do not have any more influence on the terminal's size.
Comment 40 Artur Rona 2009-03-15 23:08:18 UTC
It doesn't work. Columns and rows in profile preferences is exist, but when I change values, profile preferences doesn't save this.
Comment 41 Simon van der Linden 2009-03-15 23:51:47 UTC
(In reply to comment #40)
> It doesn't work. Columns and rows in profile preferences is exist, but when I
> change values, profile preferences doesn't save this.

What do you observe? Are the values stored in gconf (the keys are /schemas/apps/gnome-terminal/profiles/Default/size_columns size_rows)? Are they displayed correctly in the spin buttons of the preferences dialog? Are the new windows opened with the specified size? ...
Comment 42 Artur Rona 2009-03-16 21:32:09 UTC
My gconf-editor doesn't work correctly, lol. Anyway is value <schema>. But I told you, after changes in profile preferences (gnome-terminal), changed values weren't saved. gnome-terminal is starting in old sizes.
Comment 43 Artur Rona 2009-03-23 23:41:45 UTC
Simon, is your patch working on your gnome-terminal?
Comment 44 Artur Rona 2009-04-12 23:44:56 UTC
Ok, Simon, I've tested your code. I remake patch for Ubuntu's package gnome-terminal 2.26 and it works! From me, if Simon's patch will be correctly applied, this bug has been fixed. 

Note: words called "Columns" and "rows" need to be translated.
Comment 45 Artur Rona 2009-04-12 23:55:28 UTC
Who want to test it on Debian/Ubuntu distros can find patches .debs @my-ppa.
https://launchpad.net/~ari-tczew/+archive/ppa
Comment 46 Artur Rona 2009-04-19 20:17:59 UTC
Is it possible, include Simon's patch into Gnome 2.27?
Comment 47 Christian Persch 2009-04-19 20:25:08 UTC
Setting the size on realize is not the correct place. It needs to be done in a location where it runs only exactly once at initialisation. Perhaps terminal_screen_profile_notify_cb() but needs to be guarded against being set after the initial run...
Comment 48 Artur Rona 2009-04-19 21:07:55 UTC
I'm not a developer, but I know, that Simon's patch it is, what I need.
Comment 49 Christian Persch 2009-07-24 22:13:37 UTC
*** Bug 589070 has been marked as a duplicate of this bug. ***
Comment 50 Grant Bowman 2009-10-24 22:01:50 UTC
Fix was released already but I don't see how to change the status.
Comment 51 Christian Persch 2009-10-24 22:38:24 UTC
Don't. This is *not* fixed.
Comment 52 Grant Bowman 2009-10-25 04:54:20 UTC
Sorry about the confusion. It works fine for me using gnome-terminal --geometry=124x41-0-1
I'm using version 2.28.1-0ubuntu1.
Comment 53 Behdad Esfahbod 2009-12-15 06:50:23 UTC
Fixed in master.  Now the profile preferences let one choose default columns and rows and those are stored in gconf.
Comment 54 gan lu 2010-04-18 07:05:31 UTC
It seems not being fixed yet, I tested gnome-terminal 2.30.0, which still can't save such value after restart, however value in gconf is correct one (132*24) that I changed.
Comment 55 Christian Persch 2010-04-18 08:30:02 UTC
This feature was removed from 2.30.x; it's only available on git master.