From 97f063b926a0a1fdd66df727910cbbb7f64222d4 Mon Sep 17 00:00:00 2001 From: Orgad Shaneh Date: Mon, 8 Feb 2021 22:12:46 +0200 Subject: [PATCH] Fix Python execution with autocrlf on Windows If the interp file contains CRLF, the \r is read as part of the executable file name, and gimp searches for python3.exe\r. (cherry picked from commit b134da1f39367f8b2551eaaf78521d16aaeff03f) --- app/plug-in/gimpinterpreterdb.c | 1 + 1 file changed, 1 insertion(+) diff --git a/app/plug-in/gimpinterpreterdb.c b/app/plug-in/gimpinterpreterdb.c index 14b1f7905d..2eb8f785d9 100644 --- a/app/plug-in/gimpinterpreterdb.c +++ b/app/plug-in/gimpinterpreterdb.c @@ -291,6 +291,7 @@ gimp_interpreter_db_add_program (GimpInterpreterDB *db, name = buffer; program = p + 1; + g_strchomp (program); if (! g_file_test (program, G_FILE_TEST_IS_EXECUTABLE)) {