summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Leeds <matthew.leeds@endlessm.com>2020-07-30 17:22:22 -0700
committerMatthew Leeds <matthew.leeds@endlessm.com>2020-07-30 17:42:22 -0700
commit40f7ff36ee3859b96d1379d2953599a7fa31afcf (patch)
treefe38516c979c90de4129de318f8890485b44e0cf
parent342df1d1f5c5350d48a73098b742f2c72626f65a (diff)
downloadflatpak-fix-mask-systemhelper.tar.gz
system-helper: Support setting 'masked' config keyfix-mask-systemhelper
This fixes the following error when the "flatpak mask" command is used with the system-helper: "error: Unsupported key: masked"
-rw-r--r--system-helper/flatpak-system-helper.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/system-helper/flatpak-system-helper.c b/system-helper/flatpak-system-helper.c
index f9c46e1e..0aa9f6a0 100644
--- a/system-helper/flatpak-system-helper.c
+++ b/system-helper/flatpak-system-helper.c
@@ -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);