Codebase list xapp / 4a0eb55
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
1 changed file(s) with 4 addition(s) and 4 deletion(s). Raw diff Collapse all Expand all
419419
420420 g_file_info_set_display_name (info, priv->info->display_name);
421421 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);
426426
427427 /* Prevent showing a 'thumbnailing' icon */
428428 g_file_info_set_attribute_boolean (info, G_FILE_ATTRIBUTE_THUMBNAILING_FAILED, TRUE);