From d2d5397cc15fb60faf515e444d9cc34b9e5af16d Mon Sep 17 00:00:00 2001 From: Matthew Leeds Date: Thu, 30 Jul 2020 17:05:43 -0700 Subject: Add pin command to keep unused runtimes As discussed here [1], we want a way to mark runtimes to be kept even when they are unused by any apps and we are removing such runtimes. Currently this is a command that can be run manually; a subsequent commit will pin runtimes automatically if they are installed independently of any app. A unit test is included. [1] https://github.com/flatpak/flatpak/issues/2639#issuecomment-662311756 --- system-helper/flatpak-system-helper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'system-helper') diff --git a/system-helper/flatpak-system-helper.c b/system-helper/flatpak-system-helper.c index 0aa9f6a0..137d30b2 100644 --- a/system-helper/flatpak-system-helper.c +++ b/system-helper/flatpak-system-helper.c @@ -1108,7 +1108,8 @@ handle_configure (FlatpakSystemHelper *object, if ((strcmp (arg_key, "languages") != 0) && (strcmp (arg_key, "extra-languages") != 0) && - (strcmp (arg_key, "masked") != 0)) + (strcmp (arg_key, "masked") != 0) && + (strcmp (arg_key, "pinned") != 0)) { g_dbus_method_invocation_return_error (invocation, G_DBUS_ERROR, G_DBUS_ERROR_INVALID_ARGS, "Unsupported key: %s", arg_key); -- cgit v1.2.1