[gvfs] Show URI in gvfs-info



commit 449705eb4be29e3942919d07df04d9788ed7e3d8
Author: Alexander Larsson <alexl redhat com>
Date:   Wed Oct 16 17:39:03 2013 +0200

    Show URI in gvfs-info

 programs/gvfs-info.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/programs/gvfs-info.c b/programs/gvfs-info.c
index 6fddc4e..a42cde6 100644
--- a/programs/gvfs-info.c
+++ b/programs/gvfs-info.c
@@ -149,10 +149,10 @@ show_attributes (GFileInfo *info)
 }
 
 static void
-show_info (GFileInfo *info)
+show_info (GFile *file, GFileInfo *info)
 {
   const char *name, *type;
-  char *escaped;
+  char *escaped, *uri;
   goffset size;
 
   name = g_file_info_get_display_name (info);
@@ -189,6 +189,10 @@ show_info (GFileInfo *info)
   if (g_file_info_get_is_hidden (info))
     g_print (_("hidden\n"));
 
+  uri = g_file_get_uri (file);
+  g_print (_("uri: %s\n"), uri);
+  g_free (uri);
+
   show_attributes (info);
 }
 
@@ -225,7 +229,7 @@ query_info (GFile *file)
   if (filesystem)
     show_attributes (info);
   else
-    show_info (info);
+    show_info (file, info);
 
   g_object_unref (info);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]