Commit 00ee7d7b authored by Anders Carlsson's avatar Anders Carlsson Committed by Anders Carlsson
Browse files

If the file is a symbolic link, return the uri the file points at. Fixes

2001-10-24  Anders Carlsson  <andersca@gnu.org>

 	* libnautilus-private/nautilus-file.c
 	(nautilus_file_get_activation_uri): If the file is a symbolic link,
 	return the uri the file points at. Fixes bug #48353. The fix is not
	perfect though, so the bug is still open.
parent ddebdf1e
2001-10-24 Anders Carlsson <andersca@gnu.org>
* libnautilus-private/nautilus-file.c
(nautilus_file_get_activation_uri): If the file is a symbolic link,
return the uri the file points at. Fixes bug #48353. The fix is not
perfect though, so the bug is still open.
2001-10-21 Benedikt Roth <Benedikt.Roth@gmx.net>
* libnautilus-private/nautilus-link-desktop-file.c:
......
......@@ -2330,9 +2330,17 @@ nautilus_file_get_activation_uri (NautilusFile *file)
if (!file->details->got_link_info) {
return NULL;
}
return file->details->activation_uri == NULL
? nautilus_file_get_uri (file)
: g_strdup (file->details->activation_uri);
if (file->details->activation_uri != NULL) {
return file->details->activation_uri;
}
/* If the file is a symbolic link, we return the file the link points at */
if (nautilus_file_is_symbolic_link (file)) {
return nautilus_file_get_symbolic_link_target_path (file);
}
return nautilus_file_get_uri (file);
}
char *
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment