diff options
author | Michael Hutchinson <mhutchinson@novell.com> | 2010-06-10 05:50:07 +0400 |
---|---|---|
committer | Michael Hutchinson <mhutchinson@novell.com> | 2010-06-10 05:50:07 +0400 |
commit | b6c4553bd52d25ae9d5133de37b77acef1c807e1 (patch) | |
tree | 5f5640d39d70a9583a0b90ea7ce7917aea14e57d /main/src/addins/GnomePlatform | |
parent | b40623d8dc9aa26451f68c5132d07dbbae06a25d (diff) |
* src/core/MonoDevelop.Ide/MonoDevelop.Ide/DesktopService.cs:
* src/core/MonoDevelop.Ide/MonoDevelop.Ide.Desktop/PlatformService.cs:
Added CanOpenTerminal/OpenInTerminal.
* src/core/MonoDevelop.Ide/MonoDevelop.Ide.Gui.Pads.ProjectPad/FileOperationsBuilderExtension.cs:
Use platform service CanOpenTerminal/OpenInTerminal instead of
hardcoded gnome-terminal.
* src/addins/MacPlatform/MacPlatform.cs:
* src/addins/GnomePlatform/GnomePlatform.cs: Implemented
CanOpenTerminal/OpenInTerminal.
svn path=/trunk/monodevelop/; revision=158757
Diffstat (limited to 'main/src/addins/GnomePlatform')
-rw-r--r-- | main/src/addins/GnomePlatform/ChangeLog | 5 | ||||
-rw-r--r-- | main/src/addins/GnomePlatform/GnomePlatform.cs | 18 |
2 files changed, 23 insertions, 0 deletions
diff --git a/main/src/addins/GnomePlatform/ChangeLog b/main/src/addins/GnomePlatform/ChangeLog index d0d658ec00..4456b3ffb9 100644 --- a/main/src/addins/GnomePlatform/ChangeLog +++ b/main/src/addins/GnomePlatform/ChangeLog @@ -1,3 +1,8 @@ +2010-06-09 Michael Hutchinson <mhutchinson@novell.com> + + * GnomePlatform.cs: Implemented + CanOpenTerminal/OpenInTerminal. + 2010-04-28 Michael Hutchinson <mhutchinson@novell.com> * GnomePlatform.cs: Track StartConsoleProcess API. diff --git a/main/src/addins/GnomePlatform/GnomePlatform.cs b/main/src/addins/GnomePlatform/GnomePlatform.cs index ab8ef0bb39..af4e3bcee7 100644 --- a/main/src/addins/GnomePlatform/GnomePlatform.cs +++ b/main/src/addins/GnomePlatform/GnomePlatform.cs @@ -34,6 +34,7 @@ using System.Runtime.InteropServices; using System.Diagnostics; using System.IO; using MonoDevelop.Core.Execution; +using MonoDevelop.Core; namespace MonoDevelop.Platform { @@ -314,5 +315,22 @@ namespace MonoDevelop.Platform #endregion + //FIXME: probe for terminal + static string TerminalCommand { + get { + return PropertyService.Get ("MonoDevelop.Shell", "gnome-terminal"); + } + } + + public override bool CanOpenTerminal { + get { + return true; + } + } + + public override void OpenInTerminal (FilePath directory) + { + Runtime.ProcessService.StartProcess (TerminalCommand, "", directory, null); + } } } |