system-helper: Support setting 'masked' config key

This fixes the following error when the "flatpak mask" command is used
with the system-helper: "error: Unsupported key: masked"
This commit is contained in:
Matthew Leeds
2020-07-30 17:22:22 -07:00
committed by Alexander Larsson
parent 5192e94be2
commit 73644b00c9

View File

@@ -1106,7 +1106,9 @@ handle_configure (FlatpakSystemHelper *object,
return TRUE;
}
if ((strcmp (arg_key, "languages") != 0) && (strcmp (arg_key, "extra-languages") != 0))
if ((strcmp (arg_key, "languages") != 0) &&
(strcmp (arg_key, "extra-languages") != 0) &&
(strcmp (arg_key, "masked") != 0))
{
g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS,
"Unsupported key: %s", arg_key);