diff options
author | Bastien Nocera <hadess@hadess.net> | 2012-01-06 15:34:07 +0000 |
---|---|---|
committer | Bastien Nocera <hadess@hadess.net> | 2012-01-06 15:35:00 +0000 |
commit | 6f485b42a7172e3604ea0eec937bbe0553a76db5 (patch) | |
tree | bf15fc4be5d62d5c6c8980cf32c9980ccefbc088 /programs/gvfs-mime.c | |
parent | c99b8f22d7aa0273acb4a8a4094a01920839234c (diff) | |
download | gvfs-6f485b42a7172e3604ea0eec937bbe0553a76db5.tar.gz |
programs: List recommended applications too
As used by the app chooser button
Diffstat (limited to 'programs/gvfs-mime.c')
-rw-r--r-- | programs/gvfs-mime.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/programs/gvfs-mime.c b/programs/gvfs-mime.c index 3ef923f2..ea91c34c 100644 --- a/programs/gvfs-mime.c +++ b/programs/gvfs-mime.c @@ -137,6 +137,17 @@ main (int argc, char *argv[]) g_object_unref (info); } g_list_free (list); + + list = g_app_info_get_recommended_for_type (mimetype); + if (list != NULL) + g_print (_("Recommended applications:\n")); + for (l = list; l != NULL; l = l->next) + { + info = l->data; + g_print ("\t%s\n", g_app_info_get_id (info)); + g_object_unref (info); + } + g_list_free (list); } } else if (set) |