summaryrefslogtreecommitdiff
path: root/libnautilus-private/nautilus-program-choosing.c
diff options
context:
space:
mode:
authorRebecca Schulman <rebecka@eazel.com>2001-01-26 23:16:59 +0000
committerRebecca Schulman <rebecka@src.gnome.org>2001-01-26 23:16:59 +0000
commit5dfee0c35d7091873a30c0c63cfcb0b5cec3e6cf (patch)
treedb251215f92aa9ba2d8c49977164757d5d3168f0 /libnautilus-private/nautilus-program-choosing.c
parent2717a5cdd36e86d5c90ecd56ebecc4f9d79dbdbb (diff)
downloadnautilus-5dfee0c35d7091873a30c0c63cfcb0b5cec3e6cf.tar.gz
Fix bugs 4094, 4425, 5201 and 4106 about inappopriate applications being
2001-01-27 Rebecca Schulman <rebecka@eazel.com> Fix bugs 4094, 4425, 5201 and 4106 about inappopriate applications being offered to view remote files. This change filters applications that don't support a uri scheme from a file's short list. reviewed by: Pavel Cisler <pavel@eazel.com> * libnautilus-extensions/nautilus-mime-actions.c: (nautilus_mime_actions_get_minimum_file_attributes), (nautilus_mime_get_short_list_applications_for_file), (application_supports_uri_scheme): Filter out applications from the short list that do not support the uri scheme for the file in question. * libnautilus-extensions/nautilus-program-choosing.c: (nautilus_launch_application): Change "can_open_uris" to "expects_uris" to go along with the gnome vfs change * test/test-nautilus-mime-actions.c: (append_comma_and_scheme), (format_supported_uri_schemes_for_display), (print_application): update the tests similarly to the way the gnome-vfs tests were updated, so that all of the fields of the GnomeVFSMimeApplication structure are correctly printed. * libnautilus-extensions/nautilus-glib-extensions.c: Correct spelling and naming error in a comment
Diffstat (limited to 'libnautilus-private/nautilus-program-choosing.c')
-rw-r--r--libnautilus-private/nautilus-program-choosing.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-program-choosing.c b/libnautilus-private/nautilus-program-choosing.c
index 17ef8a5b4..e8143ed6b 100644
--- a/libnautilus-private/nautilus-program-choosing.c
+++ b/libnautilus-private/nautilus-program-choosing.c
@@ -429,7 +429,7 @@ nautilus_launch_application (GnomeVFSMimeApplication *application,
* prevents any possible ambiguity for cases where a path
* would looks like a URI.
*/
- if (application->can_open_uris) {
+ if (application->expects_uris) {
parameter = g_strdup (uri);
} else {
parameter = gnome_vfs_get_local_path_from_uri (uri);