StateSaver doesn't work when app is closed via SIGINT or SIGTERM
Bug #1259498 reported by
Ugo Riboni
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu UI Toolkit |
Fix Released
|
High
|
Zsombor Egri | ||
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
When apps are closes on the desktop by sending them a SIGINT or SIGTERM signal, the StateSaver doens't save the app state.
Since these signals are catchable by applications, it should be possible for StateSaver to register handlers for them, save and then quit.
Related branches
lp://staging/~zsombi/ubuntu-ui-toolkit/statesaver-signals
- PS Jenkins bot: Approve (continuous-integration)
- Florian Boucault (community): Needs Fixing
-
Diff: 330 lines (+242/-2)7 files modifiedmodules/Ubuntu/Components/plugin/plugin.pro (+4/-2)
modules/Ubuntu/Components/plugin/statesaverbackend_p.cpp (+18/-0)
modules/Ubuntu/Components/plugin/statesaverbackend_p.h (+1/-0)
modules/Ubuntu/Components/plugin/unixsignalhandler_p.cpp (+84/-0)
modules/Ubuntu/Components/plugin/unixsignalhandler_p.h (+60/-0)
tests/unit_x11/tst_statesaver/SimpleApp.qml (+28/-0)
tests/unit_x11/tst_statesaver/tst_statesaver.cpp (+47/-0)
Changed in ubuntu-ui-toolkit: | |
status: | New → In Progress |
assignee: | nobody → Florian Boucault (fboucault) |
importance: | Undecided → High |
Changed in ubuntu-ui-toolkit: | |
importance: | Critical → High |
Changed in ubuntu-ui-toolkit: | |
milestone: | february-2014 → march-2014 |
Changed in ubuntu-ui-toolkit: | |
status: | Confirmed → In Progress |
Changed in ubuntu-ui-toolkit: | |
milestone: | march-2014 → april-2014 |
milestone: | april-2014 → march-2014 |
Changed in ubuntu-ui-toolkit: | |
status: | In Progress → Fix Released |
To post a comment you must log in.
The right way to do it in Qt5: qt-project. org/doc/ qt-5.0/ qtdoc/unix- signals. html
http://