[geary/gnumdk/stable: 8/18] client: Running as a service does not mean running in the background indefinitely




commit 73a2045af06ecd1ba92a5e9e8e96685b5c23b52c
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]