diff --git a/app/flatpak-builtins-list.c b/app/flatpak-builtins-list.c
index 8e985910..d03f761c 100644
--- a/app/flatpak-builtins-list.c
+++ b/app/flatpak-builtins-list.c
@@ -59,6 +59,7 @@ static Column all_columns[] = {
{ "version", N_("Version"), N_("Show the version"), 1, FLATPAK_ELLIPSIZE_MODE_NONE, 1, 1 },
{ "branch", N_("Branch"), N_("Show the branch"), 1, FLATPAK_ELLIPSIZE_MODE_NONE, 0, 1 },
{ "arch", N_("Arch"), N_("Show the architecture"), 1, FLATPAK_ELLIPSIZE_MODE_NONE, 0, 1 },
+ { "runtime", N_("Runtime"), N_("Show the used runtime"), 1, FLATPAK_ELLIPSIZE_MODE_START, 0, 0 },
{ "origin", N_("Origin"), N_("Show the origin remote"), 1, FLATPAK_ELLIPSIZE_MODE_NONE, 1, 1 },
{ "installation", N_("Installation"), N_("Show the installation"), 1, FLATPAK_ELLIPSIZE_MODE_NONE, 1, 0 },
{ "ref", N_("Ref"), N_("Show the ref"), 1, FLATPAK_ELLIPSIZE_MODE_NONE, 1, 0 },
@@ -205,6 +206,7 @@ print_table_for_refs (gboolean print_apps,
const char *appdata_name;
const char *appdata_summary;
const char *appdata_version;
+ const char *runtime;
g_autofree char *latest = NULL;
g_autofree const char **subpaths = NULL;
int k;
@@ -222,9 +224,10 @@ print_table_for_refs (gboolean print_apps,
if (deploy_data == NULL)
continue;
+ runtime = flatpak_deploy_data_get_runtime (deploy_data);
+
if (app_runtime)
{
- const char *runtime = flatpak_deploy_data_get_runtime (deploy_data);
if (runtime)
{
g_auto(GStrv) pref = g_strsplit (runtime, "/", 3);
@@ -295,6 +298,8 @@ print_table_for_refs (gboolean print_apps,
flatpak_table_printer_add_column (printer, appdata_version ? appdata_version : "");
else if (strcmp (columns[k].name, "installation") == 0)
flatpak_table_printer_add_column (printer, flatpak_dir_get_name_cached (dir));
+ else if (strcmp (columns[k].name, "runtime") == 0)
+ flatpak_table_printer_add_column (printer, runtime ? runtime : "");
else if (strcmp (columns[k].name, "ref") == 0)
flatpak_table_printer_add_column (printer, partial_ref);
else if (strcmp (columns[k].name, "application") == 0)
diff --git a/doc/flatpak-list.xml b/doc/flatpak-list.xml
index 7a8c985f..55414d1d 100644
--- a/doc/flatpak-list.xml
+++ b/doc/flatpak-list.xml
@@ -221,6 +221,14 @@
+
+ runtime
+
+
+ Show the used runtime
+
+
+
version
diff --git a/tests/test-completion.sh b/tests/test-completion.sh
index c196d528..b90d2713 100755
--- a/tests/test-completion.sh
+++ b/tests/test-completion.sh
@@ -186,6 +186,7 @@ latest
options
origin
ref
+runtime
size
version
EOF
@@ -215,6 +216,7 @@ arch,latest
arch,options
arch,origin
arch,ref
+arch,runtime
arch,size
arch,version
EOF