summaryrefslogtreecommitdiff
path: root/thunar/thunar-gio-extensions.c
diff options
context:
space:
mode:
authorNick Schermer <nick@xfce.org>2012-09-27 19:42:48 +0200
committerNick Schermer <nick@xfce.org>2012-09-27 19:43:54 +0200
commit3afa40e0582e2a93d5582d66c93e4af464c1c1c4 (patch)
tree581c54b71ccd575c765bf96d57b1766491a32c70 /thunar/thunar-gio-extensions.c
parentc32ef2bc99a6c8694873400bb4a61647992a5a5d (diff)
downloadthunar-3afa40e0582e2a93d5582d66c93e4af464c1c1c4.tar.gz
Don't add empty line at end of uri list (bug #9124).
Nautilus doesn't understand empty element at the end of the string. Tested with Nautilus 3.4.
Diffstat (limited to 'thunar/thunar-gio-extensions.c')
-rw-r--r--thunar/thunar-gio-extensions.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/thunar/thunar-gio-extensions.c b/thunar/thunar-gio-extensions.c
index 4e5c77fb..97cb6515 100644
--- a/thunar/thunar-gio-extensions.c
+++ b/thunar/thunar-gio-extensions.c
@@ -337,7 +337,8 @@ thunar_g_file_list_to_string (GList *list)
string = g_string_append (string, uri);
g_free (uri);
- string = g_string_append (string, "\r\n");
+ if (lp->next != NULL)
+ string = g_string_append (string, "\r\n");
}
return g_string_free (string, FALSE);