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 328391 - terminals not saving
terminals not saving
Status: RESOLVED FIXED
Product: gnome-terminal
Classification: Core
Component: general
2.10.x
Other All
: Normal normal
: ---
Assigned To: GNOME Terminal Maintainers
GNOME Terminal Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-01-24 08:25 UTC by Ethan Joffe
Modified: 2008-12-16 19:05 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10



Description Ethan Joffe 2006-01-24 08:25:52 UTC
Please describe the problem:
It appears there is a limit on the number of terminals which can be successfully 
saved to the session, and restored on login.

Steps to reproduce:
1. open several terminals (around 20+)
2. logout saving session state
3. log back in


Actual results:
Not all the terminals restore

Expected results:
All terminals should restore

Does this happen every time?
yes

Other information:
In reviewing the ~/.gnome2/session file, it appears there is most likely a limit 
on the size of the restart command. If this is due to a limit in some lower 
level function like a shell or something, I would suggest moving the state 
needed to restore the windows to a state or configuration file.
Comment 1 Mariano Suárez-Alvarez 2006-08-28 10:49:28 UTC
Can you show us your ~/.gnome2/session file, or at least the part related to g-t?
Comment 2 Ethan Joffe 2006-08-28 17:58:36 UTC
Hi Mariano.

Here is an example of about 60 terminals in g-t in sessions.
Are you able to save state of more than 20 or 30 terminals, and have them all reappear after logging in? Again, I think the issue is that the command to restart them all ends up being too big, so the state will most likely need to be stored separately.


4,id=110a00000d000108799296200000035150009
4,Program=gnome-terminal
4,CurrentDirectory=/root
4,CloneCommand=gnome-terminal --sm-config-prefix /gnome-terminal-aMbzhK/ 
4,RestartCommand=gnome-terminal --sm-config-prefix /gnome-terminal-aMbzhK/ --sm-client-id 110a00000d000108799296200000035150009 --screen 0 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3792-1663531357-1088013490 --active --geometry 123x24 --title root@ej3:/web/blah --working-directory /web/blah --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3496--2063120737-1088661973 --active --geometry 125x24 --title root@ej3:/apache/logs --working-directory /var/log/httpd --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3496-1093795318-1088661983 --active --geometry 125x24 --title root@ej3:/web --working-directory /web --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3496--1354500653-1088661987 --active --geometry 125x24 --title root@ej3:/web/blah/cgi-bin/main --working-directory /web/blah/cgi-bin/main --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3496--859691426-1088661994 --active --geometry 164x24 --title root@ej3:/web/blah/data --working-directory /web/blah/data --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3496-2080933661-1088664675 --active --geometry 108x35 --title root@ej3:/usr/local/verisign/hits.micromatic.com --working-directory /usr/local/verisign/hits.micromatic.com --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3496--1984077684-1088668823 --active --geometry 125x24 --title root@ej3:/web/blah/templates/main/asp --working-directory /web/blah/templates/main/asp --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3496--743447608-1088668826 --active --geometry 125x24 --title root@ej3:/web/blah/html/styles/solutions/css --working-directory /web/blah/html/styles/solutions/css --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3496-1313503671-1088669265 --active --geometry 125x24 --title root@vp2:/web/blah/templates/main/asp --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3496--1104604126-1088713100 --active --geometry 125x24 --title root@ej3:/web/blah/docs --working-directory /web/blah/docs --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3496-1317599382-1088730374 --active --geometry 125x24 --title root@ej3:/web/blah/cgi-bin --working-directory /web/blah/cgi-bin --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3496-1138032448-1088730378 --active --geometry 125x24 --title root@ej3:/var/log/httpd --working-directory /var/log/httpd --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3496--1085559861-1088730383 --active --geometry 125x24 --title root@ej3:/web/blah/html/templates/demo --working-directory /web/blah/html/templates/demo --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3496--760657639-1088732969 --active --geometry 125x24 --title root@ej3:/web/blah --working-directory /web/blah --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3496--1072011842-1088732973 --active --geometry 125x24 --title root@ej3:/web/blah/data --working-directory /web/blah/data --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3496--1092996338-1088732989 --active --geometry 154x24 --title root@ej3:/web/blah/data --working-directory /web/blah/data --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3579--52845913-1092042168 --active --geometry 125x24 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3579-470756879-1092042168 --active --geometry 125x24 --title root@ej3:/web/blahhit/bin --working-directory /web/blahhit/bin --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-4700--602478402-1 --active --geometry 134x25 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-1284071264-1155375000 --active --geometry 125x24 --title root@ej3:/web/blah/sites/pink001 --working-directory /web/blah/sites/pink001 --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286--609338256-1155375004 --active --geometry 125x24 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286--31118042-1155375630 --active --geometry 125x24 --title root@ej3:/web/blah/sites --working-directory /web/blah/sites --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-146505921-1155385226 --active --geometry 125x24 --title root@vp2:/web/blah/html/styles/solutions/css --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286--185341733-1155385233 --active --geometry 125x24 --title root@vp2:/apache/conf --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-1243475873-1155385236 --active --geometry 125x24 --title root@vp2:/apache/logs --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-1275294268-1155385240 --active --geometry 125x24 --title root@vp2:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286--88337893-1155385246 --active --geometry 125x24 --title root@vp2:/usr/local/verisign --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286--349272874-1155451812 --active --geometry 125x24 --title root@ej3:/web/blahhit/cgi-bin --working-directory /web/blahhit/cgi-bin --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-1276174951-1155510160 --active --geometry 125x24 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-1816102613-1155510166 --active --geometry 125x24 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-429306648-1155564224 --active --geometry 125x24 --title root@ej3:/web/xmlfeed/data --working-directory /web/xmlfeed/data --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286--1916803761-1155564228 --active --geometry 148x24 --title root@ej3:/apache/logs --working-directory /var/log/httpd --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-2030451216-1155564241 --active --geometry 125x24 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286--1533402312-1155564244 --active --geometry 125x24 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-893597829-1155570465 --active --geometry 125x24 --title root@ej3:/web/pdhit/cgi-bin --working-directory /web/pdhit/cgi-bin --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286--2086509667-1155571848 --active --geometry 125x24 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-639901018-1155576338 --active --geometry 125x24 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-1206327622-1155576385 --active --geometry 125x24 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-805668014-1155576535 --active --geometry 150x24 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-1627706331-1155576638 --active --geometry 125x24 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286--682795918-1155576844 --active --geometry 125x24 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286--1316463029-1155576873 --active --geometry 125x24 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-619674415-1155576901 --active --geometry 125x24 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-1109560815-1155576910 --active --geometry 125x24 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286--258118503-1155576929 --active --geometry 125x24 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286--457527912-1155576933 --active --geometry 125x24 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-512688867-1155577619 --active --geometry 125x24 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286--1831048779-1155577625 --active --geometry 140x24 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-643607799-1155580489 --active --geometry 140x24 --title root@ej3:~ /apachemodperl/logs --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286--2018384405-1155591375 --active --geometry 125x24 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-1884677495-1155680925 --active --geometry 125x24 --title root@ej3:/web/blah/parse --working-directory /web/blah/parse --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-130537527-1155682152 --active --geometry 89x32 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286--984502506-1155682348 --active --geometry 125x24 --title root@ej3:/web/blah/sites/pink001 --working-directory /web/blah/sites/pink001 --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286--1663197938-1155683065 --active --geometry 125x24 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286--542767542-1155683882 --active --geometry 86x34 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286--516939403-1155825723 --active --geometry 96x36 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-389841889-1156016710 --active --geometry 125x24 --title root@ej3:/web/html --working-directory /web/html --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-1159325692-1156016819 --active --geometry 125x24 --title root@ej3:~ /web/html --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-219160712-1156073620 --active --geometry 125x24 --title root@ej3:/web/blah/cgi-bin --working-directory /web/blah/cgi-bin --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-1202225049-1156077442 --active --geometry 125x24 --title root@ej3:/usr/local/verisign/hits.pacifictao.com --working-directory /usr/local/verisign/hits.pacifictao.com --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-1749573543-1156205184 --active --geometry 125x24 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286--1034055589-1156249064 --active --geometry 125x24 --title root@vp2:/etc --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-1102011286-1156250168 --active --geometry 125x24 --title root@ej3:/web/xmlfeed/cgi-bin --working-directory /web/xmlfeed/cgi-bin --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-1868551709-1156250851 --active --geometry 125x24 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286-1125010815-1156253091 --active --geometry 125x24 --title root@ej3:~ --working-directory /root --zoom 1 --window-with-profile-internal-id=Default --show-menubar --role=gnome-terminal-3286--297477265-1156253415 --active --geometry 125x24 --title root@ej3:~ --working-directory /root --zoom 1 
Comment 3 Mariano Suárez-Alvarez 2006-08-28 19:06:36 UTC
First of all, wow.

With that taken out of the way... 

The first thing to comes to my mind is that lots of those arguments in that command line are redundant. In another bug I posted a patch that fixes the '--zoom 1' silliness. It is trivial to make it so that windows with just one tab do not get an --active, and that --{show,hide}-menubar only is used when the profile in the window/tab specifies the oposite setting.

Next, this shows that the command is saved correctly. If you say that when you log back in you do not get the saved sate (do you get some windows, no windows, what?), then the problem is not really in gnome-terminal but in the session code. I'll take a look.
Comment 4 Ethan Joffe 2006-08-28 21:18:03 UTC
I often have even more terminals open, so even with redundant args removed, this will still be an issue.

Yes, I believe the command is saved correctly, but that when executed, it is essentially 'clipped', maybe by some limit on the command length?

When I log back in, I get some windows, I think the first batch specified in the command which again points to a command length limit.
Comment 5 Ethan Joffe 2007-01-05 18:34:02 UTC
Hi Mariano.

I recently upgraded to FC6 and this problem still persists.
Cant we get a solution to this, or is it too hard?

Tnx
Comment 6 Christian Persch 2008-05-29 20:09:20 UTC
This is because of the command line length limit .
To fix this we probably need to use the egg-session stuff instead of gnome-client, http://live.gnome.org/SessionManagement/EggSMClient .
Comment 7 Christian Persch 2008-12-16 19:05:48 UTC
Fixed in 2.25.3.