[patch] Set save_selected from autosave



Hi,

The attached patch set save_selected in maybe_display_gui.  This is
necessary for saving the session when the option prompt on logout is
unchecked, since otherwise in maybe_run_discard_commands the new discard
command is run, and of course it erases the currently saved data.

I found this because metacity gets its previous session id from the
session file (as oppossed to the command line), and so it was failing to
register with the SM causing a noticeable delay at login time.

HTH,
Gustavo

Index: logout.c
===================================================================
RCS file: /cvs/gnome/gnome-session/gnome-session/logout.c,v
retrieving revision 1.36
diff -u -r1.36 logout.c
--- logout.c	31 May 2002 05:52:27 -0000	1.36
+++ logout.c	4 Jun 2002 09:23:24 -0000
@@ -361,6 +361,7 @@
 {
   gboolean result;
 
+  save_selected = autosave;
   gsm_verbose ("maybe_display_gui(): showing dialog %d\n", logout_prompt);
 
   if (!logout_prompt)


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