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 314204 - Links to folders added to Recent documents when opened
Links to folders added to Recent documents when opened
Status: RESOLVED INCOMPLETE
Product: nautilus
Classification: Core
Component: File and Folder Operations
unspecified
Other All
: Normal normal
: ---
Assigned To: Nautilus Maintainers
Nautilus Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-08-22 20:05 UTC by Vidar Braut Haarr
Modified: 2010-03-25 14:38 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
fix for nautilus (1.45 KB, patch)
2005-08-24 15:58 UTC, Emmanuele Bassi (:ebassi)
reviewed Details | Review

Description Vidar Braut Haarr 2005-08-22 20:05:19 UTC
Please describe the problem:
If you have a link to, for example, your "download" folder on your desktop and
open it, it is added to the Recent Documents submenu.

Steps to reproduce:
1. Find some folder in your home directory.
2. Create a link to it somewhere.
3. Open this link in Nautilus.


Actual results:
It is added to the Recent Documents menu.

Expected results:
Just open the folder.

Does this happen every time?
I just tested it again a couple of times, and no, it doesn't ... Very strange.

Other information:
Comment 1 Allison Karlitskaya (desrt) 2005-08-24 02:20:09 UTC
The main gnome menus come from the GNOME panel.
Comment 2 Emmanuele Bassi (:ebassi) 2005-08-24 15:40:30 UTC
this is nautilus' fault; it checks if the URI points to a directory, but if it's
a symlink, nautilus thinks it's a regular file, and adds the URI to the RecentModel.
Comment 3 Emmanuele Bassi (:ebassi) 2005-08-24 15:58:32 UTC
Created attachment 51269 [details] [review]
fix for nautilus

this should fix nautilus file check for directories, and fix the symlink bug.
Comment 4 Emmanuele Bassi (:ebassi) 2005-08-24 15:59:56 UTC
reassigning to nautilus
Comment 5 Emmanuele Bassi (:ebassi) 2005-08-24 16:19:16 UTC
uhm, gnome-vfs should do this lookup for itself - but it is done asynchrounosly,
so here's explained the "randomness": until gnome-vfs ends the lookup check on
the symlink chain, you won't know if a symlink points to a directory or not.
Comment 6 Alexander Larsson 2005-08-29 09:07:08 UTC
That doesn't look right. First of all it doesn't handle symlink loops, so that
it could loop. But its really is at the wrong level. The is-directory check
should be done by stat(), not lstat() + manual following of symlinks. This
should already be happening though, because nautilus always get file information
using GNOME_VFS_FILE_INFO_FOLLOW_LINKS. 

Maybe we're not correctly using nautilus_file_call_when_ready() with the right
attributes somewhere before calling get_activation_action() so that the file
info is not filled in. That would explain this bug. 
It sure doesn't look so to me though:
	/* get the parameters for the actual file */	
	attributes = nautilus_mime_actions_get_minimum_file_attributes () | 
		NAUTILUS_FILE_ATTRIBUTE_FILE_TYPE |
		NAUTILUS_FILE_ATTRIBUTE_SLOW_MIME_TYPE |
		NAUTILUS_FILE_ATTRIBUTE_ACTIVATION_URI;

	parameters->file = actual_file;
	parameters->callback = activate_callback;

	nautilus_file_call_when_ready
		(actual_file, attributes, activate_callback, parameters);
Comment 7 Alexander Larsson 2005-08-29 09:09:34 UTC
If you can reproduce this, can you debug it a bit to see what happens? Is the
type of the file (GnomeVFSFileType) GNOME_VFS_FILE_TYPE_SYMBOLIC_LINK? That
would normally mean broken link. Or is it GNOME_VFS_FILE_TYPE_UNKNOWN maybe?
Comment 8 André Klapper 2009-11-07 17:22:13 UTC
NEEDINFO - This is about gnome-vfs, does this still happen with gvfs which is used in GNOME 2.26/2.28?
Comment 9 Tobias Mueller 2010-03-25 14:38:46 UTC
Closing this bug report as no further information has been provided. Please feel free to reopen this bug if you can provide the information asked for.
Thanks!