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.
Details
Details
- Take a screenshot via shortcut without opening Spectacle
- While the notifcation displays open Spectacle for example via shortcut (don't run the binary directly)
- Spectacle doesn't exit when the notifcation times out or is closed
Diff Detail
Diff Detail
- Repository
- R166 Spectacle
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Comment Actions
I know this isn't the most elegant way but I didn't want to introduce a new class member that is updated in DbusStartAgent or make notify a member to disconnect from.
This comment was removed by ngraham.