SF.net SVN: geany: [609] trunk

eht16 at users.sourceforge.net eht16 at xxxxx
Sun Jul 23 08:35:14 UTC 2006


Revision: 609
Author:   eht16
Date:     2006-07-23 01:34:51 -0700 (Sun, 23 Jul 2006)
ViewCVS:  http://svn.sourceforge.net/geany/?rev=609&view=rev

Log Message:
-----------
Search terminal program in PATH (closes #1527203).

Modified Paths:
--------------
    trunk/ChangeLog
    trunk/src/build.c
Modified: trunk/ChangeLog
===================================================================
--- trunk/ChangeLog	2006-07-22 19:27:12 UTC (rev 608)
+++ trunk/ChangeLog	2006-07-23 08:34:51 UTC (rev 609)
@@ -1,3 +1,8 @@
+2006-07-23  Enrico Tröger  <enrico.troeger at uvena.de>
+
+ * src/build.c: Search terminal program in PATH (closes #1527203).
+
+
 2006-07-22  Nick Treleaven  <nick.treleaven at btinternet.com>
 
  * src/dialogs.c: Make Find and Replace dialogs more compact.

Modified: trunk/src/build.c
===================================================================
--- trunk/src/build.c	2006-07-22 19:27:12 UTC (rev 608)
+++ trunk/src/build.c	2006-07-23 08:34:51 UTC (rev 609)
@@ -375,6 +375,9 @@
 
 
 	// check if terminal path is set (to prevent misleading error messages)
+	tmp = term_argv[0];
+	term_argv[0] = g_find_program_in_path(tmp);
+	g_free(tmp);
 	if (stat(term_argv[0], &st) != 0)
 	{
 		msgwin_status_add(
@@ -426,7 +429,7 @@
 	argv[term_argv_len + 1] = g_strdup(script_name);
 	argv[term_argv_len + 2] = NULL;
 
-	if (! g_spawn_async_with_pipes(working_dir, argv, NULL, G_SPAWN_SEARCH_PATH,
+	if (! g_spawn_async_with_pipes(working_dir, argv, NULL, 0,
 						NULL, NULL, &child_pid, NULL, NULL, NULL, &error))
 	{
 		geany_debug("g_spawn_async_with_pipes() failed: %s", error->message);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Commits mailing list