ShellOpener::ShellOpener()
{
- sdbPath = QCoreApplication::applicationDirPath();
+ QString tmpSdbPath = QCoreApplication::applicationDirPath();
#ifdef CONFIG_WIN32
- sdbPath += "\\..\\..\\..\\..\\..\\tools\\ansicon.exe";
+ tmpSdbPath += "\\..\\..\\..\\..\\..\\tools\\ansicon.exe";
#else
- sdbPath += "/../../../../../tools/sdb";
+ tmpSdbPath += "/../../../../../tools/sdb";
#endif
+ sdbPath = QDir::toNativeSeparators(tmpSdbPath);
}
QString ShellOpener::getSdbPath()
}
#ifdef CONFIG_WIN32
- command = "cmd.exe";
- arguments << "/c" << "start" << sdbPath << "sdb" << "-s" << sdbSerialName << "shell";
+ command = sdbPath;
+ arguments << "sdb" << "-s" << sdbSerialName << "shell";
#elif defined CONFIG_DARWIN
- command = QCoreApplication::applicationDirPath() + "/sdbscript";
+ command = QDir::toNativeSeparators(QCoreApplication::applicationDirPath() + "/sdbscript");
arguments << sdbPath << sdbSerialName;
#else
command = "/usr/bin/gnome-terminal";