Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
dev:session-management [2009/07/19 14:44] – add bits about session startup kelnosdev:session-management [2010/10/02 17:26] (current) – external edit 127.0.0.1
Line 152: Line 152:
  
 FIXME: if an app in the Application phase (that was previously saved in the session and is **not** a standard plain-vanilla XDG autostart file) fails to connect to the session manager, do we remove it from the session?  On first glance, I'm not sure, but I'd lean toward yes, we remove it. FIXME: if an app in the Application phase (that was previously saved in the session and is **not** a standard plain-vanilla XDG autostart file) fails to connect to the session manager, do we remove it from the session?  On first glance, I'm not sure, but I'd lean toward yes, we remove it.
 +
 +===== Session Saving =====
 +
 +==== Multiple Saved Sessions ====
 +
 +As mentioned above, I'm strongly considering removing the feature to have more than one saved session.  However, the architecture proposed does not rule out multiple sessions, so this could be added (or added back if removed) without causing problems.
 +
 +==== Save Session By Default ====
 +
 +Assuming session saving actually works properly (I know, big assumption), I think most (all?) of the time we'll want to default to always saving the session, and we'll probably want to make it harder to disable this.  Basically this just means removing the checkbox from the logout dialog, but leaving it in the settings dialog.  Or maybe we'd have a 3-way option in the settings dialog for:
 +  - Always save session on logout
 +  - Never save session on logout
 +  - Ask whether to save the session on logout
 +The third option would obviously display the checkbox in the logout dialog as we do now.  We still want to maintain the ability to not save the session, though hopefully this would mainly just be used in kiosk environments where the sysadmin wants the session to start fresh every time it's started.  The new xfce4-session would default to the first option.
 +
 +==== Checkpointing ====
 +
 +Another option migh be a 'checkpointing' mode in which the session gets automatically saved every X minutes while active.  This way, unexpected occurrences (power failure, system crash, etc.) wouldn't disrupt the user's state too much.  Of course, sending a SaveYourself message to all clients often might cause a noticeable delay.  We can set the 'fast' field to True in the SaveYourself message, but it's unclear as to whether or not apps generally honor that value.  Regardless, one app's definition of 'fast' might not agree with the user's (and probably would be machine-speed-dependent).