GNOME Bugzilla – Bug 552387 |
gnome-session doesn't save session anymore |
Last modified: 2009-04-20 07:44:46 UTC |
: | 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 |
*** Bug 553961 has been marked as a duplicate of this bug. ***
(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.
Doesn't bug #536685 describe the same issue? It also contains a patch...
*** Bug 557430 has been marked as a duplicate of this bug. ***
*** Bug 557243 has been marked as a duplicate of this bug. ***
*** Bug 558779 has been marked as a duplicate of this bug. ***
*** Bug 557131 has been marked as a duplicate of this bug. ***
(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
(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 :)
(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.
(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)