Skip to content

Commit

Permalink
system-helper: Support setting 'masked' config key
Browse files Browse the repository at this point in the history
This fixes the following error when the "flatpak mask" command is used
with the system-helper: "error: Unsupported key: masked"
  • Loading branch information
mwleeds authored and alexlarsson committed Aug 10, 2020
1 parent 5192e94 commit 73644b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion system-helper/flatpak-system-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 73644b0

Please sign in to comment.