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.
This commit is contained in:
Orgad Shaneh 2021-02-08 22:12:46 +02:00 committed by Jehan
parent 118c0c6734
commit b134da1f39
1 changed files with 1 additions and 0 deletions

View File

@ -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))
{