Re: [PATCH] Improve session management



Alexander Larsson wrote:
On Mon, 2006-03-20 at 16:26 +0100, Christian Neumair wrote:
Am Montag, den 20.03.2006, 14:33 +0100 schrieb Alexander Larsson:
On Thu, 2006-03-16 at 20:56 +0100, Christian Neumair wrote:
The attached patch makes Nautilus store the state of previously open
windows on exit and reopen them in their mode when restarted through
the
session. It also adds support for storing a browser window's
maximized
state in addition to its geometry.

http://bugzilla.gnome.org/show_bug.cgi?id=334215
Isn't it a bit strange to save the session state in a file in the
homedir. I though the idea was to save it in the session. Do other
apps
do things this way?
Most applications seem to encode its whole state into arguments which
are then added as argv to the restart command. Epiphany stores its
sessions in ~/.gnome2/epiphany/session_gnome-XXXXXX.xml, and adds a
--load-session command to the argv.

This sounds like a better approach. This way you can have multiple
sessions and all that
Is this really useful, considering that only one application instance is running? Maybe we can introduce a --load-session parameter that explicitly instructs Nautilus to load the single XML file? Also note that some people requested more possibilities for influencing the view parameters when opening Nautilus from a shell. They want to be able to specify a selection, browser window dimensions, which type of window should be picked for a particular URI etc.



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