From 10cbae02adabc856e048b2d9a28422342213e34b Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 20 Dec 2018 16:22:04 +0100 Subject: [PATCH] list: Default to showing installation if multiple dirs searched Closes: #2450 Approved by: alexlarsson --- app/flatpak-builtins-list.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/app/flatpak-builtins-list.c b/app/flatpak-builtins-list.c index 77d541d48..adca13b96 100644 --- a/app/flatpak-builtins-list.c +++ b/app/flatpak-builtins-list.c @@ -439,6 +439,13 @@ flatpak_builtin_list (int argc, char **argv, GCancellable *cancellable, GError * opt_runtime = TRUE; } + /* Default to showing installation if we're listing multiple installations */ + if (dirs->len > 1) + { + int c = find_column (all_columns, "installation", NULL); + all_columns[c].def = 1; + } + columns = handle_column_args (all_columns, opt_show_details, opt_cols, error); if (columns == NULL) return FALSE;