Qt apps terminate on Power-Off dialog
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
qtbase-opensource-src (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Calling Power-Off dialog from system menu and then pressing cancel button terminates some apps like fbreader and telegram. Tested on Ubuntu 18.04 and 19.10.
Steps to reproduce:
1. Install fbreader from standard repository (sudo apt install fbreader)
2. Run fbreader
3. Press Gnome system menu - power button
4. Power-Off dialog appeared - press Cancel button
Expected result: fbreader still running.
Actual result: fbreader terminated.
Same issue with Telegram app (possible other Qt apps?).
ProblemType: Bug
DistroRelease: Ubuntu 18.04
Package: gnome-shell 3.28.4-
ProcVersionSign
Uname: Linux 5.0.0-29-generic x86_64
ApportVersion: 2.20.9-0ubuntu7.7
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Oct 14 11:35:58 2019
DisplayManager: lightdm
SourcePackage: gnome-shell
UpgradeStatus: Upgraded to bionic on 2017-10-24 (719 days ago)
summary: |
- Some apps terminates on Power-Off dialog + Qt apps terminate on Power-Off dialog |
affects: | gnome-shell (Ubuntu) → qtbase-opensource-src (Ubuntu) |
Changed in qtbase-opensource-src (Ubuntu): | |
status: | Opinion → Confirmed |
I'm not sure this is a bug.
The power off dialog is meant to ask apps if they can, or to try to, close. Apps then have the opportunity to say "no" or to ask you to save your work.
Depending on the design of the message it might be appropriate for apps to terminate immediately when they get it. I don't quite know what the design of that mechanism looks like, but the behaviour of some apps terminating sounds reasonable. Most likely it's either not a bug at all, or a bug in the app itself.