StateSaver discards the saved states on SIGTERM. This has been agreed long ago 
when we stabilised the StateSaver requirements:
- states are saved every time the app goes background (inactive)
- SIGINT keeps the states saved
- SIGTERM, quit() clears the state data, as well as when the app comes 
foreground

So donate assume states being saved when SIGTERM comes. This was like
this since 1.0, so we cannot break that.

We can however expose an interface to apps so they can save whatever
they want. Any other signals we should listen on?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1447566

Title:
  Need to expose API to notify about user closing the app

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-ui-toolkit/+bug/1447566/+subscriptions

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

Reply via email to