[gimp] Fix Python execution with autocrlf on Windows
- From: Jehan <jehanp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Fix Python execution with autocrlf on Windows
- Date: Wed, 10 Feb 2021 10:04:15 +0000 (UTC)
commit b134da1f39367f8b2551eaaf78521d16aaeff03f
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.
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 3df9ea6481..0d48f99256 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]