Re: [PATCH] Improve session management, attempt 2



Am Montag, den 19.06.2006, 14:28 +0200 schrieb Alexander Larsson:
> On Fri, 2006-06-16 at 16:01 +0200, Christian Neumair wrote:
> > The attached patch is a new attempt to implement session management,
> > this time the calls are proxied through NautilusShell (thus operating on
> > the server), session names are generated on the fly and a
> > "--load-session" parameter was added. Also, the session file is not
> > removed when it is not readable or no regular file, so that one can
> > manually load a particular session on startup.
> 
> I had a quick check over it and it generally looks good.
> (...)

> @@ -617,6 +623,10 @@ nautilus_application_startup (NautilusAp
>  		} else if (!no_default_window) {
>  			Nautilus_Shell_open_default_window (shell, corba_startup_id, corba_geometry, browser_window, &ev);
>  		}
> +
> +		if (session_to_load != NULL) {
> +			Nautilus_Shell_load_session (shell, session_to_load, &ev);
> +		}
>  		
>  		/* Add ourselves to the session */
>  		init_session ();
> 
> 
> We shouldn't open a default window in this case. Did you handle that?

The session restart command includes
"--no-default-window" (nautilus-application.c:save_session).

> (...)

-- 
Christian Neumair <chris gnome-de org>




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