[nautilus/gnome-3-8] Revert "mime-actions: resolve symbolic links before launching the application"



commit d41c550f5bb5e43d10491c2f54efe37113656945
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue May 13 10:00:50 2014 -0700

    Revert "mime-actions: resolve symbolic links before launching the application"
    
    This reverts commit fe1965f2cafc4616caaea0ae048bf1ff5c8975f5.

 src/nautilus-mime-actions.c |   12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/src/nautilus-mime-actions.c b/src/nautilus-mime-actions.c
index c628861..fc0e174 100644
--- a/src/nautilus-mime-actions.c
+++ b/src/nautilus-mime-actions.c
@@ -2054,21 +2054,13 @@ activate_activation_uris_ready_callback (GList *files_ignore,
 
        /* Convert the files to the actual activation uri files */
        for (l = parameters->locations; l != NULL; l = l->next) {
-               char *uri = NULL;
-
+               char *uri;
                location = l->data;
 
                /* We want the file for the activation URI since we care
                 * about the attributes for that, not for the original file.
                 */
-               if (nautilus_file_is_symbolic_link (location->file)) {
-                       uri = nautilus_file_get_symbolic_link_target_uri (location->file);
-               }
-
-               if (uri == NULL) {
-                       uri = nautilus_file_get_activation_uri (location->file);
-               }
-
+               uri = nautilus_file_get_activation_uri (location->file);
                if (uri != NULL) {
                        launch_location_update_from_uri (location, uri);
                }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]