Fixed Bug 1951 - Debugger doesn't start on mrswitch
authorEugene Ostroukhov <eugeneo@symbian.org>
Fri, 19 Feb 2010 11:36:34 -0800
changeset 178 0788170afe15
parent 176 4ede6cf4f049
child 179 222da94aea45
Fixed Bug 1951 - Debugger doesn't start on mrswitch
org.symbian.tools.wrttools.debug.core/src/org/symbian/tools/wrttools/debug/internal/launch/WidgetLaunchDelegate.java
--- a/org.symbian.tools.wrttools.debug.core/src/org/symbian/tools/wrttools/debug/internal/launch/WidgetLaunchDelegate.java	Fri Feb 19 11:18:11 2010 -0800
+++ b/org.symbian.tools.wrttools.debug.core/src/org/symbian/tools/wrttools/debug/internal/launch/WidgetLaunchDelegate.java	Fri Feb 19 11:36:34 2010 -0800
@@ -29,6 +29,7 @@
 import org.eclipse.core.runtime.IPath;
 import org.eclipse.core.runtime.IProgressMonitor;
 import org.eclipse.core.runtime.IStatus;
+import org.eclipse.core.runtime.Path;
 import org.eclipse.core.runtime.Status;
 import org.eclipse.debug.core.DebugPlugin;
 import org.eclipse.debug.core.ILaunch;
@@ -39,6 +40,7 @@
 import org.symbian.tools.wrttools.debug.internal.ChromeDebugUtils;
 import org.symbian.tools.wrttools.debug.internal.IConstants;
 import org.symbian.tools.wrttools.previewer.PreviewerPlugin;
+import org.symbian.tools.wrttools.util.CoreUtil;
 
 public class WidgetLaunchDelegate implements
 		ILaunchConfigurationDelegate {
@@ -110,6 +112,9 @@
 
 	private String getChromeProfilePath() {
 		IPath location = ResourcesPlugin.getWorkspace().getRoot().getLocation();
+		if (CoreUtil.isLinux() && location.toString().length() > 50) {
+			location = new Path(System.getProperty("user.home")).append(".wrtdebug");
+		}
 		return location.append(".chrome").toOSString();
 	}