diff options
author | Matthew Leeds <matthew.leeds@endlessm.com> | 2020-07-30 17:05:43 -0700 |
---|---|---|
committer | Alexander Larsson <alexander.larsson@gmail.com> | 2020-08-31 16:29:03 +0200 |
commit | d2d5397cc15fb60faf515e444d9cc34b9e5af16d (patch) | |
tree | db169fdb7a5da5c35d92977e13ea8e58200c626a /system-helper | |
parent | f24b1fdc1aff9787d219a87a4ca15f0eed4d6420 (diff) | |
download | flatpak-d2d5397cc15fb60faf515e444d9cc34b9e5af16d.tar.gz |
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
Diffstat (limited to 'system-helper')
-rw-r--r-- | system-helper/flatpak-system-helper.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |