[geary/wip/775956-dbus-activation] Revert ignoring GSettings when determing if background svc
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/775956-dbus-activation] Revert ignoring GSettings when determing if background svc
- Date: Tue, 9 Apr 2019 15:26:38 +0000 (UTC)
commit 7792f813873efe1977bf89116ee05c8be65073f9
Author: Michael Gratton <mike vee net>
Date: Wed Apr 10 00:53:58 2019 +1000
Revert ignoring GSettings when determing if background svc
This lets the app keep running in the backround even if not started
as a dbus service. Useful for testing, or if accidentally quit, if
nothing else.
src/client/application/geary-application.vala | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
---
diff --git a/src/client/application/geary-application.vala b/src/client/application/geary-application.vala
index ae383d73..570a7380 100644
--- a/src/client/application/geary-application.vala
+++ b/src/client/application/geary-application.vala
@@ -129,7 +129,12 @@ public class GearyApplication : Gtk.Application {
* closed, instead of exiting as usual.
*/
public bool is_background_service {
- get { return (this.flags & ApplicationFlags.IS_SERVICE) != 0; }
+ get {
+ return (
+ (this.flags & ApplicationFlags.IS_SERVICE) != 0 ||
+ this.config.startup_notifications
+ );
+ }
}
private string bin;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]