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 96788 - session not saved correctly
session not saved correctly
Status: RESOLVED FIXED
Product: gnome-terminal
Classification: Core
Component: general
2.0.x
Other Linux
: Normal normal
: ---
Assigned To: Havoc Pennington
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2002-10-25 10:09 UTC by Brad Garcia
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for saving --command argument for session. (394 bytes, patch)
2002-10-30 11:04 UTC, Brad Garcia
none Details | Review

Description Brad Garcia 2002-10-25 10:09:56 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.
Comment 1 Brad Garcia 2002-10-30 11:04:45 UTC
Created attachment 11909 [details] [review]
Patch for saving --command argument for session.
Comment 2 Brad Garcia 2002-10-30 11:09:07 UTC
Found the bug.

We were freeing a string that argv[] was pointing to.
Removing the g_free call fixes the problem.

Please apply.
Comment 3 Havoc Pennington 2002-10-30 13:46:30 UTC
Thanks a lot, applied to CVS HEAD.