[geary/wip/775956-dbus-activation] Fix controller not being started when started as DBus service
- From: Michael Gratton <mjog src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [geary/wip/775956-dbus-activation] Fix controller not being started when started as DBus service
- Date: Tue, 9 Apr 2019 15:26:43 +0000 (UTC)
commit eacdf8d95aca84f5ce8acc8012f904a6995e2356
Author: Michael Gratton <mike vee net>
Date: Wed Apr 10 01:03:06 2019 +1000
Fix controller not being started when started as DBus service
src/client/application/geary-application.vala | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/src/client/application/geary-application.vala b/src/client/application/geary-application.vala
index 570a7380..a9acf4f0 100644
--- a/src/client/application/geary-application.vala
+++ b/src/client/application/geary-application.vala
@@ -297,8 +297,13 @@ public class GearyApplication : Gtk.Application {
add_action_entries(action_entries, this);
- // Use a hold() here (if started as a service, we will shutdown after 10s).
- hold();
+ if ((this.flags & ApplicationFlags.IS_SERVICE) != 0) {
+ // Since command_line won't be called below if running as
+ // a DBus service, disable logging spew and start the
+ // controller running.
+ Geary.Logging.log_to(null);
+ this.create_async.begin();
+ }
}
public override void activate() {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]