GNOME Bugzilla – Bug 96788
session not saved correctly
Last modified: 2004-12-22 21:47:04 UTC
Running x86 Redhat 8.0, gnome-terminal-2.0.1-5 I started a gnome terminal with several tabs, each tab containing an rsh session, like so (names changed to make example easier to follow): gnome-terminal --geometry 80x24-0-54 --hide-menubar --title=host1 --command="rsh host1" --tab-with-profile=Default --title=host2 --command="rsh host2" --tab-with-profile=Default --title=host3 --command="rsh host3" I then went to exit X and chose to save the current setup. The command line that was saved in the session file was somewhat garbled. In particular, the --command options had completely incorrect arguments.
Created attachment 11909 [details] [review] Patch for saving --command argument for session.
Found the bug. We were freeing a string that argv[] was pointing to. Removing the g_free call fixes the problem. Please apply.
Thanks a lot, applied to CVS HEAD.