restore session by default

Bug #1232112 reported by Danielle Foré
50
This bug affects 11 people
Affects Status Importance Assigned to Milestone
Calculator
Fix Released
Low
Marvin Beckers
Files
Fix Released
Medium
Jeremy Wootten
Geary
Confirmed
Undecided
Unassigned
Maya
Fix Released
Medium
Corentin Noël
Scratch
Fix Released
Low
Mario Guerriero

Bug Description

For Freya, we should try to make sure that every app we ship restores the previous session by default. This will be our second release with no minimize button and we really need to make sure that it works as advertised.

Related branches

Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

FYI there's an already-in-place mechanism in Glib.Application and therefore Granite.Application to fully save a state of an application and restore it later. This can be triggered by e.g. D-bus signal via the Glib.Application D-bus interfaces provided by any of our apps.

This is a very tempting shortcut at first glance. However, it might save the state a bit too fully - it serializes everything up to the the widget states and restores everything later, by which time the environment may have drastically changed and the saved state is no longer relevant.

It might prove useful, but has to be thoroughly investigated and used with care.

Revision history for this message
Cassidy James Blaede (cassidyjames) wrote :

If we have a legitimate reason to exclude Switchboard, we should try to distinguish what exactly the difference between it and other apps is. For example, is it utility vs. content creation? No, because Music isn't content creation and we save its state. Is it system vs. app? Maybe, but where does that line exist?

I think changing a setting, then hitting close, then going back to change its setting again in a bit would work well with Switchboard saving its state. There's a big, obvious home button on the top-left (the most prominent location in an app), so it's not like a user will get lost.

Changed in switchboard:
status: New → Incomplete
Revision history for this message
Danielle Foré (danrabbit) wrote :

I don't see why we wouldn't want to save the state of switchboard. Is there a solid reason why not?

Changed in switchboard:
status: Incomplete → Confirmed
Revision history for this message
Corentin Noël (tintou) wrote :

The app should restore:
 * Window Geometry
 * Window State
 * Window Position
 * Window Monitor
 * Panels Geometry

Cody Garver (codygarver)
Changed in pantheon-files:
importance: Undecided → Medium
status: New → Confirmed
milestone: none → isis-beta1
Changed in maya:
status: New → Confirmed
importance: Undecided → Medium
milestone: none → isis-beta1
Revision history for this message
Jim Nelson (yorba-jim) wrote :

I've ticketed this upstream at http://redmine.yorba.org/issues/6325

Changed in geary:
status: New → Confirmed
Changed in scratch:
status: New → Confirmed
importance: Undecided → Low
milestone: none → isis-beta1
Changed in scratch:
assignee: nobody → Mario Guerriero (mefrio-g)
status: Confirmed → In Progress
Changed in scratch:
status: In Progress → Fix Released
Corentin Noël (tintou)
Changed in maya:
status: Confirmed → Fix Committed
assignee: nobody → Corentin Noël (tintou)
Cody Garver (codygarver)
Changed in switchboard:
importance: Undecided → Medium
milestone: none → isis-beta1
Revision history for this message
Linus Bobcat (biobunny-exe) wrote :

IMO, Switchboard shouldn't restore session. In most cases one would finish a task, and then close Switchboard. But upon opening Switchboard again, the person might not want to do what the original task. For example:

- User opens Switchboard
- User links a new account to Online Accounts
- User closes Switchboard
- User finds a cool wallpaper online
- User opens Switchboard intending to change the wallpaper
- Switchboard opens to the Online Accounts plug.

This especially becomes a strange behaviour as some plugs are rarely used or set and forget: Keyboard, Mouse, Network, About. It would be better UX to not assume what the user would want to do upon launch and let him/her choose, it's really easy to find out where everything is anyway.

Changed in pantheon-files:
assignee: nobody → Jeremy Wootten (jeremywootten)
Cody Garver (codygarver)
Changed in pantheon-files:
status: Confirmed → In Progress
Cody Garver (codygarver)
Changed in pantheon-files:
status: In Progress → Fix Committed
Changed in switchboard:
milestone: isis-beta1 → isis-beta2
Changed in maya:
status: Fix Committed → Fix Released
Changed in switchboard:
milestone: freya-beta2 → none
Revision history for this message
David Alin Shaheen (shashing93) wrote :

There should be an option to disable this. Me and my husband have been testing Freya for a few days now and it has seriously been irritating us to death that when we open Pantheon-Files it goes to where we last was instead of were its supposed to, the home folder. I came here thinking it was a bug and find that for some strange reason its ACTUALLY and intended feature. Come to mention a few other apps have been getting on my nerves because they open the previous session. When I close the app, I'm done with it. PERIOD. When I open it again, I and everyone I've ever known expects to start a new session. NOT opening, have to close or navigate away from the previous session and then trying to get to where I expect my session to originally have started at. In this case my home folder. Which is were Pantheon-Files SHOULD go when I open a new session. If for some bizarre reason you Devs want it to do that, thats perfectly fine, but give us the option to fix it.

Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

shashing93: In Files, you can disable tab restoring by editing the dconf settings "org.pantheon.files.preferences.restore-tabs" using dconf-editor or otherwise.

Revision history for this message
Jeremy Wootten (jeremywootten) wrote :

A possible compromise on this, which would not involve editing the settings, would be to have Files always open the Home Folder plus whatever other folders were last open in separate tabs. Perhaps another bug (wishlist) could be opened if this was wanted?

Revision history for this message
Nicolò Balzarotti (anothersms) wrote :

+1 @Jeremy "Open home folder plus restore old session in separate tabs"

Avi Romanoff (aroman)
description: updated
Changed in pantheon-files:
status: Fix Committed → Fix Released
Cody Garver (codygarver)
Changed in pantheon-calculator:
assignee: nobody → Marvin Beckers (embik)
importance: Undecided → Low
status: New → In Progress
Changed in pantheon-calculator:
status: In Progress → Fix Committed
milestone: none → freya-beta2
Changed in pantheon-calculator:
status: Fix Committed → Fix Released
no longer affects: switchboard
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.