# HG changeset patch # User Eugene Ostroukhov # Date 1266608257 28800 # Node ID 222da94aea45f8c1475ef9caba5fa81a21f87314 # Parent 0788170afe1517cc671ab984b89fc6cb0d5aec15# Parent 68eb1095ab012260c4f768dfef4e9462f69b9488 Heads merge diff -r 68eb1095ab01 -r 222da94aea45 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:25:58 2010 -0800 +++ b/org.symbian.tools.wrttools.debug.core/src/org/symbian/tools/wrttools/debug/internal/launch/WidgetLaunchDelegate.java Fri Feb 19 11:37:37 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(); }