PDA

View Full Version : [ubuntu] Weird behaviour when setting window size of terminal


bejurne
June 6th, 2008, 06:25 AM
I am trying to set the window size of the terminal.

To do this, I went to window rules in the Compiz Settings Manager and set the size of "class=Gnome-terminal". The weird thing is, that it only works occasionally. In about 50% of the cases it opens with the correct size and in the others it opens with the default size. I tried opening and closing it several times in succession and there seems to be no pattern to when it opens with the correct size and when not. When I minimize a window with the wrong size it will maximize to the correct size though. Really weird... I tried all sorts of things but couldn't find the reason for this behaviour.

This seems to be specific to setting the window size of the terminal, since making the terminal sticky and setting the window position in Place Windows works all the time. Setting the size works perfectly with other applications like gedit or firefox.

Is there maybe an error log of compiz, I could have a look at?

Btw, I use Ubuntu Hardy with all the latest updates.

chewearn
June 6th, 2008, 09:41 AM
You can use --geometry switch to set the terminal window size without any need to use compiz.

E.g.
gnome-terminal --geometry=80x50

will open the terminal with 80 characters across by 50 lines down.

.

bejurne
June 9th, 2008, 09:57 AM
Thanks, this works perfectly.

Although it doesn't solve the bug, it is exactly what I needed.

...still curious what caused this weird behaviour though.