Need to expose API to notify about user closing the app
Bug #1447566 reported by
Michał Sawicz
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Confirmed
|
Medium
|
Zsombor Egri |
Bug Description
Apps currently have no way to "clean up" when a user closes them (swipes an app away in the right-edge switcher).
It'd be useful to expose a signal that the app can subscribe to to handle SIGTERM that's sent to it by upstart. The app should not exit until the signal handler returns. Initially we'll rely on upstart to SIGKILL the app after a timeout, but later we'll need to implement a way for the app to suppress that if e.g. it needs to ask the user what to do with unsaved data.
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | New → Confirmed |
importance: | Undecided → Medium |
assignee: | nobody → Zsombor Egri (zsombi) |
To post a comment you must log in.
What about the unsaved data case when an app is killed by life cycle management? It seems problematic to me to lead app developers into believing that users will see that question, when most of the time they won't.