[nautilus/fix-gdrive] file: Use target-uri for shortcut file types



commit 75f713a96a482743e23087326d42638672f317c5
Author: Carlos Soriano <csoriano redhat com>
Date:   Thu Sep 27 12:17:04 2018 +0200

    file: Use target-uri for shortcut file types
    
    This is necessary for files such as GDrive files, where the target uri
    is the web url that needs to be opened for activation.
    
    Closes: https://gitlab.gnome.org/GNOME/nautilus/issues/473

 src/nautilus-file.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/nautilus-file.c b/src/nautilus-file.c
index c62b47a6b..a91541e7a 100644
--- a/src/nautilus-file.c
+++ b/src/nautilus-file.c
@@ -2494,6 +2494,7 @@ update_info_internal (NautilusFile *file,
 
     if (!file->details->got_custom_activation_uri &&
         (g_file_info_get_attribute_boolean (info, G_FILE_ATTRIBUTE_STANDARD_IS_VIRTUAL) ||
+         file_type == G_FILE_TYPE_SHORTCUT ||
          nautilus_file_is_in_recent (file)))
     {
         activation_uri = g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_STANDARD_TARGET_URI);


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