diff options
author | Alexander Larsson <alexl@redhat.com> | 2008-11-18 09:57:46 +0000 |
---|---|---|
committer | Alexander Larsson <alexl@src.gnome.org> | 2008-11-18 09:57:46 +0000 |
commit | 2fb818ff25e02c563d0ec66be0b9e858e4f39527 (patch) | |
tree | 883fd8bd442bda10d6941c86fa07ec2464df8625 /daemon | |
parent | dde38e67ee2b22ba8ed37996086f5391ee087dc6 (diff) | |
download | gvfs-2fb818ff25e02c563d0ec66be0b9e858e4f39527.tar.gz |
If user is specified, add to name too, so we get a unique fuse path
2008-11-18 Alexander Larsson <alexl@redhat.com>
* daemon/gvfsbackendsftp.c:
If user is specified, add to name too, so we get a unique fuse path
svn path=/trunk/; revision=2098
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/gvfsbackendsftp.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/daemon/gvfsbackendsftp.c b/daemon/gvfsbackendsftp.c index 4ba1337f..0eb50c94 100644 --- a/daemon/gvfsbackendsftp.c +++ b/daemon/gvfsbackendsftp.c @@ -1515,8 +1515,12 @@ do_mount (GVfsBackend *backend, g_vfs_backend_set_mount_spec (backend, sftp_mount_spec); g_mount_spec_unref (sftp_mount_spec); - /* Translators: This is the name of an sftp share, like "sftp on <hostname>" */ - display_name = g_strdup_printf (_("sftp on %s"), op_backend->host); + if (op_backend->user_specified) + /* Translators: This is the name of an sftp share, like "sftp on <hostname> as <user>" */ + display_name = g_strdup_printf (_("sftp on %s as %s"), op_backend->host, op_backend->user); + else + /* Translators: This is the name of an sftp share, like "sftp on <hostname>" */ + display_name = g_strdup_printf (_("sftp on %s"), op_backend->host); g_vfs_backend_set_display_name (backend, display_name); g_free (display_name); g_vfs_backend_set_icon_name (backend, "folder-remote"); |