Bug 981832 - gnome-save-session won't save gnome-terminals.
gnome-save-session won't save gnome-terminals.
Product: Fedora
Classification: Fedora
Component: gnome-terminal (Show other bugs)
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Matthias Clasen
Fedora Extras Quality Assurance
: Reopened
: 955592 (view as bug list)
Depends On:
  Show dependency treegraph
Reported: 2013-07-06 01:56 EDT by Rick Richardson
Modified: 2013-11-21 10:08 EST (History)
6 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2013-09-11 09:58:10 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

External Trackers
Tracker ID Priority Status Summary Last Updated
GNOME Bugzilla 704676 None None None Never

  None (edit)
Description Rick Richardson 2013-07-06 01:56:44 EDT
gnome-save-session won't save gnome-terminal's in the Cinnamon desktop.  However, it will save, for example, Firefox.

create a bunch of gnome-terminal's
create a firefox browser


See, the firefox is still there, but the gnome-terminal's are not.

This worked in Fedora 17!  It is my #1 BUG, as I use 15-20 gnome-terminals constantly.
Comment 1 Rick Richardson 2013-07-06 10:53:28 EDT
OK, this also doesn't work with Gnome Shell desktop.
Comment 2 Andre Robatino 2013-07-07 18:28:59 EDT
Looks like a duplicate of bug 955592. Unfortunately that hasn't gotten any attention either.
Comment 3 Rick Richardson 2013-09-09 07:24:55 EDT
Gene Czarcinski <gene@czarc.net> 2013-09-07 15:44:03 UTC writes:

"Sometime between 3.6.2 and 3.8.4, in someone's infinite
wisdom, all of the session management code has been ripped out of

At this point, yes, it could be added back in but, if there is truly a valid
reason to remove it then maybe a better approach for those of use who really
want the session management is to fork gnome-terminal 3.6.2 into a new package.
 The only current alternatives which will restore are kde's konsole and xterm
both of which are not exactly satisfactory solutions."

So, we have to use "konsole" from KDE.  Tell me, why does gnome 3 get worse and worse???
Comment 4 Gene Czarcinski 2013-09-09 11:22:14 EDT
I have tracked the change down to a specific commit which was part of 3.7.0 and, at this point, make the problem an RFE rather than a "bug".


I am not sure where such matters are discussed but I cannot find any explanation as to why smclient support was removed.  I do notice that other Gnome applications such as the gnome-tweak-tool does not support smclient either and maybe that is just making gnome-terminal consistent.  If that is the reason, my opinion is that it is not a valid reason.

I have mentioned forking gnome-terminal at the 3.6.2 version but am having second thoughts about that.  I really wish I understood the reasoning behind the removal of the smclient support from gnome-terminal and the fact that there has been so little comment about it.
Comment 5 Rick Richardson 2013-09-09 12:04:34 EDT
I tried "roxterm" based on VTE (yum install roxterm).  SM is active there, but only one terminal is saved, and the coordinates are always set to 0,0 even though I put it in another place.
Comment 6 Rick Richardson 2013-09-09 12:43:33 EDT
I tried "xfce4-terminal" based on VTE (yum install xfce4-terminal).  SM is active there, and all terminals are saved. But, the coordinates are always set to 0,Y-coord even though I put it in another place.  So it is real close, all we have to do is find out the bug that sets the X-coord to 0.
Comment 7 Gene Czarcinski 2013-09-09 14:53:38 EDT
OK, I also have been testing with xfce4-terminal.  I believe that the position on the desktop will depend on how you have things set with gnome-tweak-tool.  However, there is no attempt to put the windows on the correct desktop.  Both of these facts are true under both the Gnome 4 gnome-shell and xfce4 desktops.

There is hope here that something may be done.

BTW, even when gnome-terminal did support smclient, it did not get positioning or desktop right every time.

I also did some testing with konsole ... these is more hope/promise with xfce4-terminal.
Comment 8 Gene Czarcinski 2013-09-10 11:18:29 EDT
More info.  I finally found some documentation/discussion:


Comment 9 Gene Czarcinski 2013-09-10 12:31:46 EDT
It would have been helpful is the commit comments had been a bit more verbose in explaining what was being done.  In any case, gtk 3.4 GtkApplication picked up logout notification, etc. and EggSMClient was no longer needed:





Unfortunately, they did not complete the work and add the functionality back in of saving the session so that it could be restored.  But, this does say that the "correct" answer is to develop a patch for gnome-terminal-3.8+ which will add that functionality back in.
Comment 10 Zeeshan Ali 2013-09-10 12:42:26 EDT
I don't think gnome-session-save is supported/maintained anymore (as pointed out in comment#3) as there is no concept of session saving anymore. I think this is a clear WONTFIX.
Comment 11 Zeeshan Ali 2013-09-10 12:50:32 EDT
*** Bug 955592 has been marked as a duplicate of this bug. ***
Comment 12 Gene Czarcinski 2013-09-10 13:42:47 EDT
Sorry, I believe you are NOT correct in closing this.  You should have read all of my comments and the referenced documents.  Yes, the eggsmclient code was removed because starting with gtk 3.4, GtkApplication supported logout notification and negotiation similar to EggSMClient (removal done Decemaber 2011).  In March 2012, gnome-terminal was changed to use GtkApplication.

However, actually saving the session state appears to be a bit more difficult and has not been done yet.  I have not seen anything that says a decision has been made to not implement it.

If such a decision has been made, then where is it documented?  Why does gnome-session still support the option of automatically remembering running applications at logout?  Why is there still a org.gnome.gnome-session.auto-save-session boolean variable?

You will notice that I have reopened this as a request for enhancement and not as a bug report.  This is consistent with the report in the gnome bugzilla which is still open.
Comment 13 Zeeshan Ali 2013-09-10 14:30:22 EDT
I did this after consenting with Assignee of this bug:

<zeenix> mclasen: i marked it as WONTFIX, feel free to reopen if needed
<mclasen> zeenix: fine with me - doesn't make sense as a fedora bug anyway
Comment 14 Gene Czarcinski 2013-09-11 09:58:10 EDT
OK, after some additional thought, I have come to the conclusion that this should be closed.  As a matter of fact, I have come to the conclusion that those who argue that saving the session at logout should not be done are correct.

What I really want is to do is to autostart some applications and this is already doable.  What I am not sure of yet is how to specify that I want one gnome-terminal window started in workspace 1 and a second gnome-terminal window started in workspace 2.  The old session-save did this for me but this should be doable.
Comment 15 Rick Richardson 2013-11-19 17:19:57 EST
Here's what I did.  It is better than nothing.

$ cat ~/bin/terminal-populate

#       1920x1200 monitor

wmctrl -s 0
gnome-terminal --geometry=80x35-0+0     # right, top
gnome-terminal --geometry=80x35-0-0     # right, bottom
gnome-terminal --geometry=80x35+0-0     # left, bottom
gnome-terminal --geometry=80x35+700-0   # center, bottom

wmctrl -s 1
gnome-terminal --geometry=80x79+0+0     # left, top
gnome-terminal --geometry=80x79+700+0   # center, top
gnome-terminal --geometry=80x79-0+0     # right, top

wmctrl -s 2
gnome-terminal --geometry=80x79+0+0     # left, top
gnome-terminal --geometry=80x79+700+0   # center, top
gnome-terminal --geometry=80x79-0+0     # right, top

wmctrl -s 0
Comment 16 Gene Czarcinski 2013-11-21 08:42:37 EST
I do something similar by having gnome-session autostart a number of gnome-terminal and with some of them run a script.  I will have to think on this.  Your way may be better.
Comment 17 Rick Richardson 2013-11-21 10:08:50 EST
Yes, I use gnome-session-properties to autostart terminal-populate.

$ cat ~/bin/terminal-populate 

#       1920x1200 monitor

wmctrl -s 0
# firefox       # session save worked on this one!
gnome-terminal --geometry=80x35-0+0             # right, top
gnome-terminal --geometry=80x35+0-0 $WD         # left, bottom
gnome-terminal --geometry=80x35+700-0 $WD       # center, bottom
gnome-terminal --geometry=80x35-0-0 $WD         # right, bottom

wmctrl -s 1
gnome-terminal --geometry=80x79+0+0 $WD         # left, top
gnome-terminal --geometry=80x79+700+0 $WD       # center, top
gnome-terminal --geometry=80x79-0+0 $WD         # right, top

wmctrl -s 2
gnome-terminal --geometry=80x79+0+0 $WD         # left, top
gnome-terminal --geometry=80x79+700+0 $WD       # center, top
gnome-terminal --geometry=80x79-0+0 $WD         # right, top

wmctrl -s 3
gnome-terminal --geometry=80x79+0+0 $WD         # left, top
gnome-terminal --geometry=80x79+700+0 $WD       # center, top
gnome-terminal --geometry=80x79-0+0 $WD         # right, top

wmctrl -s 0

Note You need to log in before you can comment on or make changes to this bug.