diff options
author | Simon McVittie <smcv@collabora.com> | 2020-12-07 18:10:08 +0000 |
---|---|---|
committer | Alexander Larsson <alexander.larsson@gmail.com> | 2020-12-09 08:34:19 +0100 |
commit | 7eedd219e993c3ffed0a686d172418fa5650429d (patch) | |
tree | ec5f6c30ad8b467540730970f97888c0dc3046ed /session-helper | |
parent | c704685ecf72a582707958659ccd02a4d7f78dcb (diff) | |
download | flatpak-7eedd219e993c3ffed0a686d172418fa5650429d.tar.gz |
session-helper: Return G_DBUS_METHOD_INVOCATION_HANDLED where appropriate
Signed-off-by: Simon McVittie <smcv@collabora.com>
Diffstat (limited to 'session-helper')
-rw-r--r-- | session-helper/flatpak-session-helper.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/session-helper/flatpak-session-helper.c b/session-helper/flatpak-session-helper.c index 084e2dfd..a150346b 100644 --- a/session-helper/flatpak-session-helper.c +++ b/session-helper/flatpak-session-helper.c @@ -90,7 +90,7 @@ handle_request_session (FlatpakSessionHelper *object, flatpak_session_helper_complete_request_session (object, invocation, g_variant_builder_end (&builder)); - return TRUE; + return G_DBUS_METHOD_INVOCATION_HANDLED; } @@ -226,7 +226,7 @@ handle_host_command (FlatpakDevelopment *object, g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "No command given"); - return TRUE; + return G_DBUS_METHOD_INVOCATION_HANDLED; } if (!g_variant_is_of_type (arg_fds, G_VARIANT_TYPE ("a{uh}")) || @@ -237,7 +237,7 @@ handle_host_command (FlatpakDevelopment *object, g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "Unexpected argument"); - return TRUE; + return G_DBUS_METHOD_INVOCATION_HANDLED; } g_debug ("Running host command %s", arg_argv[0]); @@ -342,7 +342,7 @@ handle_host_command (FlatpakDevelopment *object, g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, code, "Failed to start command: %s", error->message); - return TRUE; + return G_DBUS_METHOD_INVOCATION_HANDLED; } pid_data = g_new0 (PidData, 1); @@ -363,7 +363,7 @@ handle_host_command (FlatpakDevelopment *object, flatpak_development_complete_host_command (object, invocation, NULL, pid_data->pid); - return TRUE; + return G_DBUS_METHOD_INVOCATION_HANDLED; } static gboolean @@ -382,7 +382,7 @@ handle_host_command_signal (FlatpakDevelopment *object, g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_UNIX_PROCESS_ID_UNKNOWN, "No such pid"); - return TRUE; + return G_DBUS_METHOD_INVOCATION_HANDLED; } g_debug ("Sending signal %d to client pid %d", arg_signal, arg_pid); @@ -394,7 +394,7 @@ handle_host_command_signal (FlatpakDevelopment *object, flatpak_development_complete_host_command_signal (object, invocation); - return TRUE; + return G_DBUS_METHOD_INVOCATION_HANDLED; } static void |