[gnome-software/wip/hadess/quit-means-quit] Make --quit close the front-end and the backend



commit 106326a5768b5be70f82fc241d87e70172a19acd
Author: Bastien Nocera <hadess hadess net>
Date:   Fri Feb 21 17:20:18 2020 +0100

    Make --quit close the front-end and the backend
    
    To match both the option's description (“Quit the running instance”),
    and the fact that it's a command-line option for developers and
    command-line aficionados.
    
    This doesn't change the behaviour of the “Quit” action in the
    gnome-shell app menu.
    
    Closes: #844

 src/gs-application.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/src/gs-application.c b/src/gs-application.c
index 151e8344..59a9f432 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -1057,8 +1057,10 @@ gs_application_handle_local_options (GApplication *app, GVariantDict *options)
                                                NULL);
        }
        if (g_variant_dict_contains (options, "quit")) {
+               /* The 'quit' command-line option shuts down everything,
+                * including the backend service */
                g_action_group_activate_action (G_ACTION_GROUP (app),
-                                               "quit",
+                                               "shutdown",
                                                NULL);
                return 0;
        }


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