Don't exit when running in gui mode and notification times out

Authored by davidre on May 15 2019, 9:49 PM.

Description

Don't exit when running in gui mode and notification times out

This was originally commited as
https://cgit.kde.org/spectacle.git/commit/?id=c6ad1d6ae9291685b2767ab70bdeaaadb7783658,
which due to an oversight was not merged to master like it should have
been. Original commit message:

Summary: If a screenshot is taken in DBus or background mode and the running instance is 'upgraded' to gui mode while the notification is displaying the instance would still exit after the notification timed out or was destroyed. So simply check if we are running in gui mode before exiting.

Test Plan:

  1. Take a screenshot via shortcut without opening Spectacle
  2. While the notifcation displays open Spectacle for example via shortcut (don't run the binary directly)
  3. Spectacle doesn't exit when the notifcation times out or is closed

Reviewers: Spectacle, broulik, ngraham

Reviewed By: Spectacle, ngraham

Subscribers: ngraham, Spectacle

Tags: Spectacle

Differential Revision: https://phabricator.kde.org/D21052

Details

Committed
ngrahamAug 20 2019, 3:51 PM
Reviewer
Spectacle
Differential Revision
D21052: Don't exit when running in gui mode and notification times out
Parents
R166:b3337d18458e: Allow Spectacle to build with KConfig <= 5.56.0
Branches
Unknown
Tags
Unknown