From 64133a0c9ba8a67087de435d3f74a27d46eff883 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sun, 13 Jan 2019 13:41:02 -0500 Subject: [PATCH] run: Don't fail completion on empty repos This lets completion keep working for the run command despite an empty custom installation. Closes: #2585 Approved by: alexlarsson --- app/flatpak-builtins-run.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/flatpak-builtins-run.c b/app/flatpak-builtins-run.c index 7cf98ddf..c846035d 100644 --- a/app/flatpak-builtins-run.c +++ b/app/flatpak-builtins-run.c @@ -248,7 +248,8 @@ flatpak_complete_run (FlatpakCompletion *completion) g_option_context_add_group (context, flatpak_context_get_options (arg_context)); if (!flatpak_option_context_parse (context, options, &completion->argc, &completion->argv, - FLATPAK_BUILTIN_FLAG_ALL_DIRS, NULL, NULL, NULL)) + FLATPAK_BUILTIN_FLAG_ALL_DIRS | FLATPAK_BUILTIN_FLAG_OPTIONAL_REPO, + NULL, NULL, NULL)) return FALSE; switch (completion->argc)