← Back to team overview

touch-packages team mailing list archive

[Bug 1447566] [NEW] Need to expose API to notify about user closing the app

 

Public bug reported:

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.

** Affects: ubuntu-ui-toolkit (Ubuntu)
     Importance: Medium
     Assignee: Zsombor Egri (zsombi)
         Status: Confirmed

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to ubuntu-ui-toolkit in
Ubuntu.
https://bugs.launchpad.net/bugs/1447566

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

Status in ubuntu-ui-toolkit package in Ubuntu:
  Confirmed

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.

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


Follow ups

References