diff options
author | Alexander Larsson <alexl@redhat.com> | 2013-10-16 17:39:03 +0200 |
---|---|---|
committer | Alexander Larsson <alexl@redhat.com> | 2013-10-16 17:39:03 +0200 |
commit | 449705eb4be29e3942919d07df04d9788ed7e3d8 (patch) | |
tree | a691eb0484c3a25443fb1b453cc8ee68b4c1ac08 /programs | |
parent | eb1e1bb3e13eb6d9a9952fd1b6cb7ffe65aba15f (diff) | |
download | gvfs-449705eb4be29e3942919d07df04d9788ed7e3d8.tar.gz |
Show URI in gvfs-info
Diffstat (limited to 'programs')
-rw-r--r-- | 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 6fddc4ee..a42cde6d 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); |