[gnome-software] trivial: Allow specifying --profile and --mode at the same time
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Allow specifying --profile and --mode at the same time
- Date: Wed, 14 Sep 2016 12:44:25 +0000 (UTC)
commit 4b2d95e5c0d25dd92cb6aaeb414a016a73669b74
Author: Richard Hughes <richard hughsie com>
Date: Wed Sep 14 13:29:30 2016 +0100
trivial: Allow specifying --profile and --mode at the same time
This lets us profile each shell from cold start.
src/gs-application.c | 6 ------
1 files changed, 0 insertions(+), 6 deletions(-)
---
diff --git a/src/gs-application.c b/src/gs-application.c
index a15fe92..c042b80 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -864,7 +864,6 @@ gs_application_handle_local_options (GApplication *app, GVariantDict *options)
g_action_group_activate_action (G_ACTION_GROUP (app),
"profile",
NULL);
- return 0;
}
if (g_variant_dict_contains (options, "quit")) {
g_action_group_activate_action (G_ACTION_GROUP (app),
@@ -877,27 +876,22 @@ gs_application_handle_local_options (GApplication *app, GVariantDict *options)
g_action_group_activate_action (G_ACTION_GROUP (app),
"set-mode",
g_variant_new_string (mode));
- return 0;
} else if (g_variant_dict_lookup (options, "search", "&s", &search)) {
g_action_group_activate_action (G_ACTION_GROUP (app),
"search",
g_variant_new_string (search));
- return 0;
} else if (g_variant_dict_lookup (options, "details", "&s", &id)) {
g_action_group_activate_action (G_ACTION_GROUP (app),
"details",
g_variant_new ("(ss)", id, ""));
- return 0;
} else if (g_variant_dict_lookup (options, "details-pkg", "&s", &pkgname)) {
g_action_group_activate_action (G_ACTION_GROUP (app),
"details-pkg",
g_variant_new_string (pkgname));
- return 0;
} else if (g_variant_dict_lookup (options, "local-filename", "^&ay", &local_filename)) {
g_action_group_activate_action (G_ACTION_GROUP (app),
"filename",
g_variant_new ("(s)", local_filename));
- return 0;
}
return -1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]