This is a Laclin feature patch for "thunar" "git" snapshots dated cir- ca Fall 2021.v It preventsv "thunar" from putting spaces in filenames resulting from "copy" operations. As a side effect, internationalization of the filenames in question is presently disabled. This may be corrected in a future version. --- thunar-git-dc94f86db.old/thunar/thunar-io-jobs-util.c +++ thunar-git-dc94f86db/thunar/thunar-io-jobs-util.c @@ -41,7 +41,8 @@ * * Determines the #GFile for the next copy/link of/to @file. * - * Copies of a file called X are named "X (copy 1)" + * Copies of a file called X are named "X_copy_1" w/appropriate num- + * ber. * * Links follow have a bit different scheme, since the first link * is renamed to "link to #" and after that "link Y to X". @@ -111,7 +112,7 @@ * * Determines the #GFile for the next copy/move to @tgt_file. * - * File named X will be renamed to "X (copy 1)". + * File named X will be renamed to "X_copy_1" w/appropriate number. * * If there are errors or the job was cancelled, the return value * will be %NULL and @error will be set. @@ -168,14 +169,14 @@ if (extension != NULL) { file_basename = g_strndup (old_filename, extension - old_filename); - /* I18N: put " (copy #)" between basename and extension */ - filename = g_strdup_printf (_("%s (copy %u)%s"), file_basename, n, extension); + /* I18N: put "_copy_#" between basename and extension */ + filename = g_strdup_printf ("%s_copy_%u%s", file_basename, n, extension); g_free(file_basename); } else { - /* I18N: put " (copy #)" after filename (for files without extension) */ - filename = g_strdup_printf (_("%s (copy %u)"), old_filename, n); + /* I18N: put "_copy_#" after filename (for files without extension) */ + filename = g_strdup_printf ("%s_copy_%u", old_filename, n); } /* create the GFile for the copy/move */ --- thunar-git-dc94f86db.old/thunar/thunar-util.c +++ thunar-git-dc94f86db/thunar/thunar-util.c @@ -723,7 +723,7 @@ if (name_mode == THUNAR_NEXT_FILE_NAME_MODE_NEW) new_name = g_strdup_printf (_("%.*s %u%s"), (int) file_name_size, file_name, ++count, extension ? extension : ""); else if (name_mode == THUNAR_NEXT_FILE_NAME_MODE_COPY) - new_name = g_strdup_printf (_("%.*s (copy %u)%s"), (int) file_name_size, file_name, ++count, extension ? extension : ""); + new_name = g_strdup_printf (_("%.*s_copy_%u%s"), (int) file_name_size, file_name, ++count, extension ? extension : ""); else if (name_mode == THUNAR_NEXT_FILE_NAME_MODE_LINK) { if (count == 0)