Programs should exit gracefully on session end

Bug #388121 reported by Dutch Gecko
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
One Hundred Papercuts
Won't Fix
Undecided
Unassigned
Ubuntu
Invalid
Undecided
Unassigned

Bug Description

This one might be a bit tenuous, but bear with me.

When the user requests Gnome to shut down or log out, the X session is immediately TERMinated, along with its contents. This is what all window managers have done for eons, but IMO the user experience would be vastly improved if instead, programs were given the option of exiting gracefully, and requesting user input if appropriate. This behaviour would then be similar to that found on other desktop operating systems.

A few use cases to demonstrate what I mean:

1) A user logs in and starts upFirefox as part of their standard workflow. When done, they log out. The next day, they log in again, and start up Firefox.
What you expect: Firefox asks the user what it should do before logging out on day one, or restores tabs automatically (depending on user settings).
What actually happens: Firefox immediately exits on day one, and on day two recovers tabs as if it had crashed, informing the user that "a crash occurred".

2) A user is working on a document in OpenOffice, and then switches workspace to browse the internet before saving. When done with browsing, the user chooses to shut down, forgetting that they have an unsaved document open on another workspace.
What you expect: OpenOffice should ask the user whether they'd like to save the document or discard changes, much like it does when pressing the close button or hitting Alt+F4. Since the workspace has changed, this request should either appear on the active workspace, or the user should be switched to OpenOffice's workspace (perhaps even have all workspaces collapse to a single workspace).
What actually happens: OpenOffice immediately exits. The next time OpenOffice is opened, the user has to walk through the recovery process to get their document back. Potentially worse, the user sends the document in an email or copies it to another medium, unaware that the file does not contain the newest changes.

3) The user starts a large file transfer to a USB stick, then absent-mindedly logs out instead of locking the screen before the file transfer is complete.
What you expect: Either a) the user is informed that a file transfer is in progress, and is given the option of stopping the transfer or interrupting the log out procedure or b) the file transfer is gracefully interrupted, without leaving potentially corrupted files on either file system
What actually happens: the file transfer is immediately interrupted, with a potential for corruption on the destination media.

Tags: ayatana
Revision history for this message
Martin Albisetti (beuno) wrote :

This may or may not be something small to fix, but definitely worth fixing

Changed in hundredpapercuts:
status: New → Confirmed
Revision history for this message
roffik (roffik) wrote :

Did it really happened to you? I don't believe it. Since Intrepid or maybe even Hardy there is a dialog saying "A program prevents from logging out. What do you want to do? Log out anyway, Cancel..." or similar. Doesn't that work?

[ADDED]

I tried logging out with unsaved text in gedit. It WORKS: gedit asked if it should close without saving, cancel logging out or save; after ~1 second the dialog I mentioned about above appeared.

Revision history for this message
Vish (vish) wrote :

 Thank you for bringing this bug to our attention. Unfortunately a paper cut should be a small usability issue that affects many people and is quick and easy to fix. I'm afraid this bug can't be addressed as part of this project.
 A paper cut is a minor usability annoyance that an average user would encounter on his/her first day of using a new installation of Ubuntu 9.10.
 For further info about papercuts criteria , pls read > https://wiki.ubuntu.com/PaperCut
 This bug has been marked as "invalid" ONLY in the papercuts project.

Further ... I would like *David Siegel* to look into this and consider this for the Ayatana project , since this is would be quite a nice usability feature.

Changed in hundredpapercuts:
status: Confirmed → Invalid
Revision history for this message
David Siegel (djsiegel-deactivatedaccount) wrote :

We should also avoid the compiz/GNOME/X cascading tear-down that makes it look like your computer is exploding.

Changed in ayatana:
status: New → Invalid
tags: added: ayatana
Revision history for this message
Vish (vish) wrote :

Won't Fix in papercuts , but is tagged "ayatana" to be overseen in The Ayatana project.

Changed in hundredpapercuts:
status: Invalid → Won't Fix
Tom Haddon (mthaddon)
affects: dead-ayatana → libindicator
Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better.
Is this bug reproducible with the latest Lucid packages ?
Tanks in advance.

Changed in ubuntu:
status: New → Incomplete
Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. This bug did not have a package associated with it, which is important for ensuring that it gets looked at by the proper developers. You can learn more about finding the right package at https://wiki.ubuntu.com/Bugs/FindRightPackage.

When reporting bugs in the future please use apport by using 'ubuntu-bug' and the name of the package affected. You can learn more about this functionality at https://help.ubuntu.com/community/ReportingBugs.

Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

We'd like to figure out what's causing this bug for you, but we haven't heard back from you in a while. Could you please provide the requested information? Thanks!

Revision history for this message
Dutch Gecko (dutch-gecko) wrote :

Sorry, should have responded earlier. I haven't been able to reproduce this recently, and I think even when I reported the bug it was something strange in my setup rather than ubuntu's fault.

Changed in ubuntu:
status: Incomplete → Invalid
Revision history for this message
Fabio Marconi (fabiomarconi) wrote :

Thanks for the reply
Fabio

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.