[gimp/gimp-2-10] Fix Python execution with autocrlf on Windows



commit 97f063b926a0a1fdd66df727910cbbb7f64222d4
Author: Orgad Shaneh <orgad shaneh audiocodes com>
Date:   Mon Feb 8 22:12:46 2021 +0200

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


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]