Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUwe Stieber2014-05-19 11:26:32 +0000
committerUwe Stieber2014-05-19 13:11:49 +0000
commit21b0a1822191f77693846c0f6210f97c54858111 (patch)
tree38b308969599899a0a608ecc37a09b7cf10d1e41
parentbabdf1f44425b7f49ddac1c5cd81e5a923cf6b08 (diff)
downloadorg.eclipse.tcf-21b0a1822191f77693846c0f6210f97c54858111.tar.gz
org.eclipse.tcf-21b0a1822191f77693846c0f6210f97c54858111.tar.xz
org.eclipse.tcf-21b0a1822191f77693846c0f6210f97c54858111.zip
Target Explorer: Fix Bug 434940 - [TERMINALS] Cannot open multiple local
terminals - Part 2
-rw-r--r--target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.local/src/org/eclipse/tcf/te/ui/terminals/local/launcher/LocalLauncherDelegate.java6
1 files changed, 6 insertions, 0 deletions
diff --git a/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.local/src/org/eclipse/tcf/te/ui/terminals/local/launcher/LocalLauncherDelegate.java b/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.local/src/org/eclipse/tcf/te/ui/terminals/local/launcher/LocalLauncherDelegate.java
index 64ac4bb2c..aaa1e404d 100644
--- a/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.local/src/org/eclipse/tcf/te/ui/terminals/local/launcher/LocalLauncherDelegate.java
+++ b/target_explorer/plugins/org.eclipse.tcf.te.ui.terminals.local/src/org/eclipse/tcf/te/ui/terminals/local/launcher/LocalLauncherDelegate.java
@@ -79,6 +79,12 @@ public class LocalLauncherDelegate extends AbstractLauncherDelegate {
properties.setProperty(ITerminalsConnectorConstants.PROP_FORCE_NEW, true);
}
+ // Start the local terminal in the users home directory
+ String home = System.getProperty("user.home"); //$NON-NLS-1$
+ if (home != null && !"".equals(home)) { //$NON-NLS-1$
+ properties.setProperty(ITerminalsConnectorConstants.PROP_PROCESS_WORKING_DIR, home);
+ }
+
// Get the terminal service
ITerminalService terminal = ServiceManager.getInstance().getService(ITerminalService.class);
// If not available, we cannot fulfill this request

Back to the top