After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 144006 - sftp user@server.com should go to "/home/user", not to "/"
sftp user@server.com should go to "/home/user", not to "/"
Status: RESOLVED WONTFIX
Product: gnome-vfs
Classification: Deprecated
Component: Module: ftp
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gnome-vfs maintainers
gnome-vfs maintainers
Depends on:
Blocks:
 
 
Reported: 2004-06-09 08:49 UTC by Gabor Farkas
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Gabor Farkas 2004-06-09 08:49:15 UTC
when i go to (nautilus, ctrl+L) "sftp://user@host.com" (it's the same with
"ssh://user@host.com"), then i get into the "/" directory of the server.

imho i should get into  "/home/user"
Comment 1 Gabor Farkas 2004-06-09 08:50:05 UTC
i checked konqueror's behaviour...

fish://user@host.com (fish is what ssh is for nautilus)
goes to fish://user@host.com/home/user

but

sftp://user@host.com goes to "/" on host.com
Comment 2 Christophe Fergeau 2004-06-09 08:54:06 UTC
Imo this kind of policy should be implemented in Nautilus not in gnome-vfs
Comment 3 Gabor Farkas 2004-06-09 09:51:26 UTC
hmmm.... good question.... does vfs-api has something as getDefaultDirectory? if
yes, then it should go to vfs-api. if not, then into nautilus imho
Comment 4 Christophe Fergeau 2004-06-09 09:55:19 UTC
Nope, there is no such thing as a "getDefaultDirectory" function. Fwiw, the ftp
method used to put users in their home dir when they logged in (since it's the
default behaviour on most ftp servers), and this caused issues in Nautilus, so
some code was added to make sure that after logging in, the current directory is /
Comment 5 Alexander Larsson 2004-06-09 10:07:01 UTC
We can't go on modifying the path like that! Then there is no way to reach
anything outside your homedir on the machine! gnome-vfs is not the place for this.
Comment 6 Gabor Farkas 2004-06-09 10:34:19 UTC
just to clarify this....

are you saying that:
1. doing what i said is a bad idea
or
2. doing what i said should be implemented in nautilus
    or
    2.a: this should be discussed on the nautilus-list
Comment 7 Alexander Larsson 2004-06-09 13:45:11 UTC
We shouldn't ever interpret uris in a way that breaks uri specifications or
generally does strange stuff. Its not like the kernel vfs suddenly treats
pathnames like "/"  meaning /home/$user just because you logged in, so why
should gnome-vfs do it?

Its possible that the UI in nautilus can be designed so that its easier in some
specific use cases to get to the home directory on an ftp server, but that
shouldn't be handled by reinterpreting uris.

Also, all ftp sites where you log in as a user doesn't have /home/$user, so we
can't generally do this. (In fact, many ftp servers show you your homedir as /
when you log in as a user.)