/* Returns: A newly allocated string that must be freed with g_free()  */
gchar* g_unix_mount_point_guess_name(GUnixMountPoint *mount_point)
/* Returns: A newly allocated string that must be freed with g_free()  */
gchar* g_unix_mount_point_guess_name(GUnixMountPoint *mount_point)
{
  char *name;
  if (strcmp (mount_point->mount_path, "/") == 0)
    name = g_strdup (_("Filesystem root"));
  else
    name = g_filename_display_basename (mount_point->mount_path);
  return name;
}