Qt apps terminate on Power-Off dialog

Bug #1847974 reported by Eugene Romanenko
28
This bug affects 5 people
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-0ubuntu18.04.2
ProcVersionSignature: Ubuntu 5.0.0-29.31~18.04.1-generic 5.0.21
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)

Revision history for this message
Eugene Romanenko (eros2) wrote :
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

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.

Changed in gnome-shell (Ubuntu):
status: New → Opinion
Revision history for this message
Eugene Romanenko (eros2) wrote :

"The power off dialog is meant to ask apps if they can, or to try to, close" - but not before I confirmed the action.

"or a bug in the app itself" - yes, it's most likely.

Revision history for this message
Eugene Romanenko (eros2) wrote :

Just add syslog messages on pressing power off button in gnome shell menu:

Oct 21 09:49:11 eugene-VirtualBox gnome-shell[3241]: endSessionDialog: No XDG_SESSION_ID, fetched from logind: 6
Oct 21 09:49:12 eugene-VirtualBox gnome-session-binary[3226]: Entering running state
Oct 21 09:49:12 eugene-VirtualBox gnome-shell[3241]: Ignored exception from dbus method: Gio.IOErrorEnum: GDBus.Error:org.gtk.GDBus.UnmappedGError.Quark._g_2dio_2derror_2dquark.Code19: Operation was cancelled

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
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.