# HG changeset patch # User Eugene Ostroukhov # Date 1266608194 28800 # Node ID 0788170afe1517cc671ab984b89fc6cb0d5aec15 # Parent 4ede6cf4f049b57c416eb7ba68ccc9fc25b47b40 Fixed Bug 1951 - Debugger doesn't start on mrswitch diff -r 4ede6cf4f049 -r 0788170afe15 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(); }