mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-11-10 03:16:17 +01:00
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:
parent
8c24b7cd6e
commit
dd49962eaf
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user