Go back to leaving favorites with missing targets as symlinks.
Setting their file type to symbolic link also signifies that it's
a broken link (working links return their target's type), so nemo
can handle it correctly (including attempting to mount it if it's
a folder).
Michael Webster
3 years ago
419 | 419 | |
420 | 420 | g_file_info_set_display_name (info, priv->info->display_name); |
421 | 421 | g_file_info_set_name (info, priv->info->display_name); |
422 | ||
423 | // Don't mark as symlink or there will be issues if the user tries to | |
424 | // remove it. | |
425 | g_file_info_set_is_symlink (info, FALSE); | |
422 | g_file_info_set_file_type (info, G_FILE_TYPE_SYMBOLIC_LINK); | |
423 | g_file_info_set_is_symlink (info, TRUE); | |
424 | g_file_info_set_symlink_target (info, priv->info->uri); | |
425 | g_file_info_set_attribute_string (info, G_FILE_ATTRIBUTE_STANDARD_TARGET_URI, priv->info->uri); | |
426 | 426 | |
427 | 427 | /* Prevent showing a 'thumbnailing' icon */ |
428 | 428 | g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_THUMBNAILING_FAILED, TRUE); |