Issue #6378: tools: Don't auto-quote filenames on gimptool for Windows

Fixes #6378

This will break Cygwin workflows (aka when the dev use 'sh' instead
of native cmd or PowerShell) but we were already not supporting that
due to 'win32_command' which redirects Unixish commands to cmd.
This commit is contained in:
Bruno Lopes 2025-05-04 11:52:40 -03:00
parent 7af987d31b
commit eff825c1a7
No known key found for this signature in database

View file

@ -116,6 +116,14 @@ win32_command (const gchar *command)
return (const gchar *) cmd;
}
/* Windows shells break with auto-quote. See: https://gitlab.gnome.org/GNOME/gimp/-/issues/6378 */
static const gchar *
hollow_g_shell_quote (const gchar *input)
{
return g_strdup (input);
}
#define g_shell_quote hollow_g_shell_quote
#endif
static gboolean