[geary/gnumdk/fix_quit: 3/6] client: Running as a service does not mean running in the background indefinitely




commit 4a305d4822663b1b03bdd7076baf1ea8616fa679
Author: Cédric Bellegarde <cedric.bellegarde@ædishatz.org>
Date:   Mon Aug 22 16:48:22 2022 +0200

    client: Running as a service does not mean running in the background indefinitely
    
    This is wrong as Geary is mostly started via D-Bus activation: it will never quit.
    
    Ignore --hidden option, it will be removed soon.
    
    Fix #728

 src/client/application/application-client.vala | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)
---
diff --git a/src/client/application/application-client.vala b/src/client/application/application-client.vala
index e6ba85331..3da32b2d1 100644
--- a/src/client/application/application-client.vala
+++ b/src/client/application/application-client.vala
@@ -210,10 +210,7 @@ public class Application.Client : Gtk.Application {
      */
     public bool is_background_service {
         get {
-            return (
-                (this.flags & ApplicationFlags.IS_SERVICE) != 0 ||
-                this.start_hidden
-            );
+            return this.config.startup_notifications;
         }
     }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]