[gvfs] programs: List recommended applications too
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gvfs] programs: List recommended applications too
- Date: Fri, 6 Jan 2012 15:35:07 +0000 (UTC)
commit 6f485b42a7172e3604ea0eec937bbe0553a76db5
Author: Bastien Nocera <hadess hadess net>
Date: Fri Jan 6 15:34:07 2012 +0000
programs: List recommended applications too
As used by the app chooser button
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 3ef923f..ea91c34 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]