Public bug reported:

Bad design of logout in Ubuntu (gnome, kde, etc) leads to at least 2 use
cases with possible data corruption from having to hardly shutdown the
computer (i.e. power off).

Use case 1 - confirmation on power button

Power goes out, PC is on UPS, monitor is not (common), lights go out.
You press the power key to turn it off.
It does NOT turn off. It displays a nice logout confirmation box, especially if 
you had another session opened (VT1, or say VT8 another X session etc).
You can either hope to login as root, go to console, and type  shutdown -h now  
in darkness, or data corruption in 3 minutes when UPS dies.

Solution:
In KDE:
- when user presses power button 2nd time in 30 seconds (or, when confirmation 
box is already visible) then just force logout
- when logout (closing all applications etc) takes more then 10 seconds (i.e. 
some applications showed a box to confirm closing it etc), or when button is 
pressed again, just kill it

In Ubuntu (scripts?)
- when power button is pressed 4 times in 30 seconds then shutdown -h now -t 10
- when power button is pressed 5 times in 30 seconds then just kill -9 most 
applications, and sync


Use case 2:
Thunderstorm closes in but you left PC running.
Family member / coworker / etc wants to turn it off, but ooops - need a 
password to unlock X...
you wait for thunderstorm or hard-power-off again.

Solutions:

GNOME:
as there is Leave-A-Note (in GNOME password), add also an Turn Off button.
Leave config option to disable it.

KDE: as in GNOME

also, the power-button-click described above (several times) would as
well solve this case,

** Affects: ubuntu
     Importance: Undecided
         Status: New

-- 
logout box + no way to kill computer = data corruption
https://bugs.launchpad.net/bugs/285141
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to