File: use_x-terminal-emulator.dpatch

package info (click to toggle)
monodevelop 1.0%2Bdfsg-3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 32,528 kB
  • ctags: 40,669
  • sloc: cs: 255,472; xml: 10,041; makefile: 3,731; sh: 2,528; sed: 2
file content (21 lines) | stat: -rw-r--r-- 1,332 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#! /bin/sh /usr/share/dpatch/dpatch-run
## use_x-terminal-emulator.dpatch by Mirco Bauer <meebey@meebey.net>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad monodevelop-0.13.1~/Core/src/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessService.cs monodevelop-0.13.1/Core/src/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessService.cs
--- monodevelop-0.13.1~/Core/src/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessService.cs	2007-03-08 00:02:14.000000000 +0100
+++ monodevelop-0.13.1/Core/src/MonoDevelop.Core/MonoDevelop.Core.Execution/ProcessService.cs	2007-04-01 22:57:37.000000000 +0200
@@ -116,8 +116,8 @@
 				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 (" ", "\\ ")));
+				ProcessStartInfo psi = new ProcessStartInfo("x-terminal-emulator",
+					String.Format (@"-e /bin/sh -c ""cd {3} ; '{0}' {1} ; {2}""", command, arguments, additionalCommands, workingDirectory.Replace (" ", "\\ ")));
 				psi.UseShellExecute = false;
 				
 				if (workingDirectory != null)