https://bugzilla.xfce.org/show_bug.cgi?id=15367
--- Comment #2 from lectrode <[email protected]> --- While I'm not very familiar with C, I think I may have found the issue. In this particular instance, the following returns "null" instead of true or false: thunar/thunar-transfer-job.c [in line 838]: g_file_info_get_attribute_boolean (dest_info, G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE) Adding the following conditional appears to solve the issue: @@ -835,16 +835,18 @@ thunar_transfer_job_verify_destination (ThunarTransferJob *transfer_job, if (dest_info != NULL) { - if (!g_file_info_get_attribute_boolean (dest_info, G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE)) - { - g_set_error (error, G_IO_ERROR, G_IO_ERROR_READ_ONLY, - _("Error while copying to \"%s\": The destination is read-only"), - dest_name); - - succeed = FALSE; - } - - g_object_unref (G_OBJECT (dest_info)); + if (g_file_info_get_attribute_boolean (dest_info, G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE) != NULL) + { + if (!g_file_info_get_attribute_boolean (dest_info, G_FILE_ATTRIBUTE_ACCESS_CAN_WRITE)) + { + g_set_error (error, G_IO_ERROR, G_IO_ERROR_READ_ONLY, + _("Error while copying to \"%s\": The destination is read-only"), + dest_name); + + succeed = FALSE; + } + g_object_unref (G_OBJECT (dest_info)); + } } } -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ Xfce-bugs mailing list [email protected] https://mail.xfce.org/mailman/listinfo/xfce-bugs
