First Last Prev Next    No search results available
Bug 552387 - gnome-session doesn't save session anymore
: gnome-session doesn't save session anymore
Product: gnome-session
Component: gnome-session-properties
Version: 2.24.x
Status: RESOLVED
Resolution: FIXED
Priority: Urgent
Severity: blocker
Description Andreas Moog [reporter] 2008-09-15 16:57:21 UTC
Filed on Launchpad:
https://bugs.launchpad.net/bugs/249265

The state of running apps is not kept when logging out even if the appropriate
box is ticked in gnome-session-properties or if the "remember current running
apps" is pressed. None of the running applications get restarted on the next
login.
Comment 1 Mick Black 2008-09-27 00:08:46 UTC
Also happens in 2.24.0 on Intrepid Alpha6
Comment 2 Jose M. daLuz 2008-09-28 14:17:53 UTC
And 2.24.0 on Gentoo.
Comment 3 Gilles Dartiguelongue 2008-10-01 21:46:31 UTC
*** Bug 553961 has been marked as a duplicate of this bug. ***
Comment 4 Mick Black 2008-10-07 06:40:02 UTC
Happening on Intrepid Beta 1 on totally seperate PC
Comment 5 Fryderyk Dziarmagowski 2008-10-09 20:05:09 UTC
run /usr/bin/gnome-session-properties and manually save session, this is what
you get:
** (gnome-session-properties:27389): DEBUG: Session saving is not implemented
yet

It's something what can be expected in 2.23.x series. But for 2.24 it's a major
regression/release blocker.

Could someone change state to confirmed/critical? thank you.
Comment 6 Mart Raudsepp [developer] 2008-10-09 20:21:43 UTC
In Gentoo Linux we can not give users GNOME-2.24 in good consciousness with
session saving suddenly not working at all because its implementation has
disappeared. And we don't seem to easily be able to keep gnome-session at 2.22
either due to things somewhat relying on the changes in gnome-session (though
we might have to investigate this possibility further).
Comment 7 Mart Raudsepp [developer] 2008-10-09 20:42:00 UTC
Andre Klapper suggested Gnome target field is something that can be tweaked for
blocker marking, so people can see what distros are struggling with to release
a full GNOME series set.
Comment 8 Ghee Teo 2008-10-17 15:39:57 UTC
Does anyone of the new gnome-session has suggestion/view on the use of Xsmp to
allow session to be saved and restored. The goal at
live.gnome.org/SessionManagement/NewGnomeSession says "Isolate the XSMP
code as much as possible, and make it possible to replace it with D-Bus over
time" that implies the developers want to move away from XSMP to dbus.

But further down the line, it says "XSMP clients can be matched to autostarted
apps by a number of means: .." that seems to say XSMP still place a role in
sessionning.

I have these queries:
- Is there a known dbus mechanism to response between applications and
gnome-session? That is, does applications need to set up a particular dbus
channel to talk to gnome-session?

- How much of XSMP will be retained by gnome-session going forward?

I am trying to figure out what need to be done to have session saved and
restored. But the first question I hit against the wall, where is the session
information is going to be saved to and in what form?

Can $HOME/.gnome2/session be used? That file is tightly linked to gnome-client
in libgnomeui, will that still survive going forwards?

Is there someone that I can talk to, through irc or e-mail on the above
questions?
THANKS!
Comment 9 Ray Strode [halfline] [gnome-session developer] 2008-10-17 19:09:10 UTC
I think session saving would probably need to be done by writing out desktop
files in ~/.config/autostart
Comment 10 Ghee Teo 2008-10-18 19:16:50 UTC
Ray, I realised that session saving can write to ~/.config/autostart, but the
problem there is desktop does not provide granularity of window's geometry
(correct me if I am wrong). Hence when they are restored, the application
windows tend to stack on top of one another.

Also that does not allow applications to be restored onto workspace other than
0.
Comment 11 Ghee Teo 2008-10-19 20:40:32 UTC
To be more precise, the desktop file specification does not allow the
specification of window geometry nor worksplace placement, so there is no mean
of restoring applications to the position required. Any comment/insight to
this?
Comment 12 Mart Raudsepp [developer] 2008-10-19 22:20:40 UTC
(In reply to comment #11)
> To be more precise, the desktop file specification does not allow the
> specification of window geometry nor worksplace placement, so there is no mean
> of restoring applications to the position required. Any comment/insight to
> this?

Maybe blogs.gnome.org/metacity/2008/03/08/session-management/ has some
insight.

Regarding saving sessions in new gnome-session with desktop files, doesn't
dumping stuff to some autostart folder mean having to clean up, generate and
dump desktop files every so often, which sounds icky to me? I have in mind the
subfeature of session saving in GNOME-2.22 - save session at logout. This also
used to save the session periodically to restore it in case of a full crash,
power loss, etc.
Comment 13 Ghee Teo 2008-10-19 23:31:02 UTC
The links made an interesting read, I noted ~/.metacity contains geometry
information about application windows. Though I have never seen it been used
long before 2.24.0 release. So according to the spec, since window manager
starts at phase 2 (or window manager phase) and assuming the phases are well
controlled, that is the apps are started /up and running before the next
(though I suspect they are spawn asyn), hence there may be time when an apps
started before metacity is able to place it. Looking at the gnome apps, class
seems pretty well specified. That may be the one to use by metacity.

I didn't realise that the sessioning stuff is that extensive. Now that GNOME
wants to move on from XSMP (even with the above blog), have anyone a complete
architectural view of the whole desktop in terms of session management?

What roles each component play:
- gnome-session
- window manager
- toolkit
- applications
Comment 14 Fryderyk Dziarmagowski 2008-10-24 14:11:10 UTC
2.24.1 is released with this major regression on board.
Is there is a plan to backport/re-enable session managment in g-s?
Would great to have some statement, to know when upgrading to GNOME 2.24 will
be possible.
Comment 15 André Klapper [developer] 2008-10-24 14:25:59 UTC
Fryderyk: Yes, obviously, because this bug is still in open state and 2.24.1
release was on Wednesday. Everybody knows this, no need to comment this.
The bug is fixed when it's closed as FIXED.
Comment 16 Fryderyk Dziarmagowski 2008-10-24 15:19:53 UTC
Andre: Thank you for pointing it to me, but I'm far away from any form of a
comment in my question.
Comment 17 Eetu Huisman 2008-10-30 06:49:06 UTC
Doesn't bug #536685 describe the same issue? It also contains a patch...
Comment 18 Ghee Teo 2008-10-30 11:22:45 UTC
Eetu, it doesn't in the complete sense. 536685 describes loading of session
file generated prior to 2.23.x release. The patch supposingly make the saved
session apps to be launched during the session start up. The bug here describes
the more complete saving current session and restoring them after a logout and
login.
Comment 19 solsTiCe d'Hiver 2008-11-01 14:41:26 UTC
*** Bug 557430 has been marked as a duplicate of this bug. ***
Comment 20 Markus 2008-11-02 09:51:59 UTC
Same problem here on updated Ibex install with GNOME 2.24.1.
Comment 21 Maciej Katafiasz 2008-11-03 12:33:22 UTC
*** Bug 557243 has been marked as a duplicate of this bug. ***
Comment 22 Maciej Katafiasz 2008-11-03 12:33:51 UTC
*** Bug 558779 has been marked as a duplicate of this bug. ***
Comment 23 Maciej Katafiasz 2008-11-03 12:34:13 UTC
*** Bug 557131 has been marked as a duplicate of this bug. ***
Comment 24 Maciej Katafiasz 2008-11-03 12:39:06 UTC
So what's the status of that? When will 2.22 behaviour be restored? How could
that have made it into the release in the first place?
Comment 25 Jeremy Nickurak 2008-11-03 17:06:26 UTC
Very dissapointing to see such a major feature regression hit gnome-stable
without any kind of warning.
Comment 26 Iuri Diniz 2008-11-04 12:08:49 UTC
This feature (save session) seems like a very used feature of gnome 2.22
because it generated a lot of discussion on ubuntu
(https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/249373). I'll
consider this a regression, but I think that people must be warned about this
issue on release notes.

Will this issue be marked to 2.26 or to 2.24.x?
Comment 27 Ghee Teo 2008-11-04 12:46:45 UTC
I have just found Matt kennan 's blog on a workaround for this feature, ere,
blogs.sun.com/mattman/entry/gnome_2_24_session_save1

May relieve some temporary pain, but certainly not all.
Comment 28 Danny Baumann 2008-11-06 07:11:00 UTC
(In reply to comment #9)
> I think session saving would probably need to be done by writing out desktop
> files in ~/.config/autostart

Why would you want to write .desktop files? Why isn't simply continuing to
write ~/.gnome2/session sufficient as well? That file is read anyways to create
a list of resumed clients (which works fine when applying my patches in bug
536685 and buf 559450), so the only missing piece in here seems to me that
writing out the session file on session close is missing. At least the XSMP
clients should be written out to that file, maybe something different should be
done about dbus API clients.
Comment 29 Jeremy Nickurak 2008-11-06 07:24:20 UTC
Does the new session infrastructure even have the features of the old one? As
far as I can tell, there's no obvious way to set the order in which the
.desktop files get executed. (at least not one google's found for me yet)
Comment 30 Dan Winship [developer] 2008-11-06 13:56:19 UTC
(In reply to comment #29)
> Does the new session infrastructure even have the features of the old one? As
> far as I can tell, there's no obvious way to set the order in which the
> .desktop files get executed. (at least not one google's found for me yet)

You can't set the order arbitrarily, but programs are started in 5 phases, with
each phase being fully started before the next one begins. See
live.gnome.org/SessionManagement/GnomeSession
Comment 31 Ghee Teo 2008-11-06 17:23:16 UTC
(In reply to comment #28)
> (In reply to comment #9)
> > I think session saving would probably need to be done by writing out desktop
> > files in ~/.config/autostart
> 
> Why would you want to write .desktop files? Why isn't simply continuing to
> write ~/.gnome2/session sufficient as well? That file is read anyways to create
> a list of resumed clients (which works fine when applying my patches in bug
> 536685 and buf 559450), so the only missing piece in here seems to me that
> writing out the session file on session close is missing. At least the XSMP
> clients should be written out to that file, maybe something different should be
> done about dbus API clients.
> 

One aspect of the BIGGER picture in gnome-session change is Project Ridley
which is to remove the use of libgnome/libgnomeui. In libgnomeui there provides
the toolkit API to access to ~/.gnome2/session. So whether we will be able to
use this file will depend on the new sessioning whether or not to adhere to the
the similar syntax and semantics. What I meant is when GNOME applications do
not linked against libgnomeui, that functionalities will disappear.

There is no clear indication as I can see from
live.gnome.org/SessionManagement/GnomeSession
May be someone who work on session like to fill in the BIG picture.

Meanwhile, I must say Danny, you are doing some good works to fill the gap :)
Comment 32 Danny Baumann 2008-11-06 18:06:59 UTC
(In reply to comment #31)
> One aspect of the BIGGER picture in gnome-session change is Project Ridley
> which is to remove the use of libgnome/libgnomeui. In libgnomeui there provides
> the toolkit API to access to ~/.gnome2/session. So whether we will be able to
> use this file will depend on the new sessioning whether or not to adhere to the
> the similar syntax and semantics. What I meant is when GNOME applications do
> not linked against libgnomeui, that functionalities will disappear.

Well, not exactly. I know that old gnome-session used gnome_* functions to read
and write that file, but new gnome-session uses g_key_file_* functions to read
it; thus my assumption was that GKeyFile can also be used to write it. But
maybe I am wrong there.

> Meanwhile, I must say Danny, you are doing some good works to fill the gap :)

Thanks :)
Comment 33 Jeremy Nickurak 2008-11-18 23:54:49 UTC
(In reply to comment #30)
> (In reply to comment #29)
> > Does the new session infrastructure even have the features of the old one? As
> > far as I can tell, there's no obvious way to set the order in which the
> > .desktop files get executed. (at least not one google's found for me yet)
> 
> You can't set the order arbitrarily, but programs are started in 5 phases, with
> each phase being fully started before the next one begins. See
> live.gnome.org/SessionManagement/GnomeSession
> 

So it seems like the common use case about 90% of the time is that a user wants
a particular program running whenever they're logged in, in the background.

Is there any information as to how a user could squeeze a program that doesn't
exit until finished into these phases, say, the initialization phase? Is there
a way to tell it not to wait for a program to exit, or respond, that it's just
an application that's not aware of this new infrastructure?

It seems like there's alot of MUST's in this system that apply to applications
that are not a part of gnome, or even legacy applications that will never be
updated. There needs to be some way to squeeze them into this process.
Comment 34 Vincent Untz [developer] 2008-11-19 11:17:35 UTC
(In reply to comment #33)
> So it seems like the common use case about 90% of the time is that a user wants
> a particular program running whenever they're logged in, in the background.

It sounds that in this case, people should just use the autostart specification
(use the session capplet to add programs that should be started on login)
<">
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.