Re: Saving sessions before a system shutdown



Ted Gould wrote:
On Wed, 2007-10-24 at 16:08 -0400, José Alburquerque wrote:
Does anyone think it's possible to insert some script in /etc/init.d
that might save the session before a shutdown?  In other words is there
some way to save the session(s) (if there are more than one) just before
a shutdown?  I'd appreciate any pointers.  BTW, I'm running gnome 2.20.
Thanks for your answers.

I don't know if you've already gotten an answer, but I don't think there
is a generic way to do this currently.  But, I think the part you're
looking for is probably the command: "gnome-session-save".  I believe if
you run this with "--kill" and "--silent" on all users currently logged
in you should get what you're looking for.

Be aware that many apps are not session aware.

		--Ted

Thanks for answering. A developer from this list did give a similar answer off-list, but, again, I appreciate your suggestion. :-)

-Jose



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]