summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarlos Soriano <csoriano@gnome.org>2015-02-27 11:58:46 +0100
committerCarlos Soriano <csoriano@gnome.org>2016-03-02 19:48:22 +0100
commit8501de4a43301cd3ce81fcc41c89c58c32829941 (patch)
tree64e2257c1ad438bdaecadb8e7639d8b9b08bd4cf
parent339f230635260b93ea46d7ca52c2abe75fc93bbe (diff)
downloadnautilus-8501de4a43301cd3ce81fcc41c89c58c32829941.tar.gz
nautilus-file: explain why is not possible to rename
desktop files are managed as a special case, and changes on the file name also affect the contents. But when the content are not a desktop valid format, it generates an error. The only thing that comes to my mind to keep maintaining this special handling of desktop files and also not being in a inconsistent state is to just explain better why we failed to rename. https://bugzilla.gnome.org/show_bug.cgi?id=721411 https://bugzilla.gnome.org/show_bug.cgi?id=734401
-rw-r--r--libnautilus-private/nautilus-file.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c
index 1ac017c05..416c79dd3 100644
--- a/libnautilus-private/nautilus-file.c
+++ b/libnautilus-private/nautilus-file.c
@@ -1941,7 +1941,7 @@ nautilus_file_rename (NautilusFile *file,
if (!success) {
error = g_error_new (G_IO_ERROR, G_IO_ERROR_FAILED,
- _("Unable to rename desktop file"));
+ _("Probably the content of the file is an invalid desktop file format"));
(* callback) (file, NULL, error, callback_data);
g_error_free (error);
return;