I did some research regarding the window restore problem and came to the
conclusion that it most likely is a bug in gnome-terminal. You can work
around this by using the old version 2.18 of gnome-terminal from Ubuntu
7.10. Therefore I recommend to assign this bug to the gnome-terminal
developers to verify.

Things to try:

-open an xterm or similar non gnome-terminal terminal application

-start 2 gnome-terminal as background process (gnome-terminal &)

-move both windows around the desktop to a different position

-in the xterm call gnome-session-save

-example output of gnome-session-save:
Saving session: gnome-terminal --window-with-profile-internal-id=Default 
--show-menubar --role=gnome-terminal-6876--1795818576-1211528538 --active 
--geometry 80x24+84+634 --title [EMAIL PROTECTED]: ~ --working-directory 
/data2/home/pt --zoom 1 --window-with-profile-internal-id=Default 
--show-menubar --role=gnome-terminal-6876--1889095960-1211528539 --active 
--geometry 80x24+661+470 --title [EMAIL PROTECTED]: ~ --working-directory 
/data2/home/pt --zoom 1

-close both gnome-terminal

-execute the command as specified by gnome-session-save ("gnome-terminal
... --zoom 1")

-both gnome-terminal will be restored, but only the last one in the list
will be restored to the right position

-if gnome-terminal is called one by one each one gets restored correctly:
first execute "gnome-terminal --window-with-profile-internal-id=Default 
--show-menubar --role=gnome-terminal-6876--1795818576-1211528538 --active 
--geometry 80x24+84+634 --title [EMAIL PROTECTED]: ~ --working-directory 
/data2/home/pt --zoom 1" -> first window is restored; then close and execute 
"gnome-terminal --window-with-profile-internal-id=Default --show-menubar 
--role=gnome-terminal-6876--1889095960-1211528539 --active --geometry 
80x24+661+470 --title [EMAIL PROTECTED]: ~ --working-directory /data2/home/pt 
--zoom 1" -> second window is restored

It is also interesting that there is a difference in the content of
.gnome2/session when calling gnome-session-save compared to when using
the gnome session autosave feature! However content of
.metacity/sessions/* is not different.

Also I see that window restore works when using compiz (most poeple do,
as this is the default window manager in hardy?) but not in metacity.
Compiz seems to rearrange the gnome-terminal windows (which do restore
wrong by theirselfs in the first place) whilst metacity doesn't and will
leave the windows in their wrong positions.

-- 
After upgrading to hardy, gnome-terminal windows are not properly restored on 
login
https://bugs.launchpad.net/bugs/221144
You received this bug notification because you are a member of Ubuntu
Desktop Bugs, which is subscribed to gnome-terminal in ubuntu.

-- 
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs

Reply via email to