Author: mhutch
Date: 2007-09-12 06:03:44 -0400 (Wed, 12 Sep 2007)
New Revision: 85672
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Core/ChangeLog
trunk/monodevelop/Core/src/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessService.cs
Log:
* MonoDevelop.Core.Execution/ProcessService.cs: Escape arguments to
xterm external console. Set xterm title so it doesn't display the
'internal' commands.
Modified: trunk/monodevelop/Core/src/MonoDevelop.Core/ChangeLog
===================================================================
--- trunk/monodevelop/Core/src/MonoDevelop.Core/ChangeLog 2007-09-12
09:28:59 UTC (rev 85671)
+++ trunk/monodevelop/Core/src/MonoDevelop.Core/ChangeLog 2007-09-12
10:03:44 UTC (rev 85672)
@@ -1,3 +1,9 @@
+2007-09-12 Michael Hutchinson <[EMAIL PROTECTED]>
+
+ * MonoDevelop.Core.Execution/ProcessService.cs: Escape arguments to
xterm
+ external console. Set xterm title so it doesn't display the 'internal'
+ commands.
+
2007-09-10 Lluis Sanchez Gual <[EMAIL PROTECTED]>
* MonoDevelop.Core.AddIns/PackageExtensionNode.cs,
Modified:
trunk/monodevelop/Core/src/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessService.cs
===================================================================
---
trunk/monodevelop/Core/src/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessService.cs
2007-09-12 09:28:59 UTC (rev 85671)
+++
trunk/monodevelop/Core/src/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessService.cs
2007-09-12 10:03:44 UTC (rev 85672)
@@ -124,8 +124,15 @@
string additionalCommands = "";
if (!console.CloseOnDispose)
additionalCommands = @"echo; read -p
'Press any key to continue...' -n1;";
- ProcessStartInfo psi = new
ProcessStartInfo("xterm",
- String.Format (@"-e ""cd {3} ; '{0}'
{1} ; {2}""", command, arguments, additionalCommands, workingDirectory.Replace
(" ", "\\ ")));
+ string xtermCommand = String.Format (
+ @" -title ""{4}"" -e ""cd {3} ; '{0}'
{1} ; {2}""",
+ command,
+ arguments.Replace ("\\",
"\\\\").Replace ("\"", "\\\""),
+ additionalCommands,
+ workingDirectory.Replace (" ", "\\ "),
+ GettextCatalog.GetString ("MonoDevelop
External Console")
+ );
+ ProcessStartInfo psi = new
ProcessStartInfo("xterm",xtermCommand);
psi.UseShellExecute = false;
if (workingDirectory != null)
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches