gio-tool-mount: Do not print anything if "gio mount -d" suceeded

"gio mount" doesn't print anything in case of success, however "gio mount -d"
prints "Mounted [id] at [mount_path]", which is inconsistent. It might probably
make sense for fstab volumes, but "gio mount -d" now support UUIDs which are
heavily used for daemon mounts and I think that it is not wise to print
"/run/user/$UID/gvfs" mount paths. The mount path can be still found over
"gio mount -l". Let's remove this message to make it more consistent.
This commit is contained in:
Ondrej Holy 2019-11-27 13:25:44 +01:00
parent 8c24b7cd6e
commit dd49962eaf

View File

@ -962,22 +962,6 @@ mount_with_device_file_cb (GObject *object,
g_error_free (error);
success = FALSE;
}
else
{
GMount *mount;
GFile *root;
char *mount_path;
mount = g_volume_get_mount (volume);
root = g_mount_get_root (mount);
mount_path = g_file_get_path (root);
g_print (_("Mounted %s at %s\n"), id, mount_path);
g_object_unref (mount);
g_object_unref (root);
g_free (mount_path);
}
g_free (id);