Index: sources/device/DeviceController.h =================================================================== diff -u -rdb52d097addadd2eef6102340778be143ee81df4 -r472c10e72a8d278f13d2343f9c81c1def14490ff --- sources/device/DeviceController.h (.../DeviceController.h) (revision db52d097addadd2eef6102340778be143ee81df4) +++ sources/device/DeviceController.h (.../DeviceController.h) (revision 472c10e72a8d278f13d2343f9c81c1def14490ff) @@ -155,14 +155,15 @@ this , SLOT(onFinish (int))); } void start() { -#ifndef BUILD_FOR_DESKTOP //FIXME : Revert this back to the #ifdef and remove the #if(n)def to avoid executing the shell scripts on VM. +#ifdef BUILD_FOR_DESKTOP //FIXME : Revert this back to the #ifdef and remove the #if(n)def to avoid executing the shell scripts on VM. qDebug() << "DeviceController.TimedProcess: " << _timeout << _command << _arguments; QFileInfo fileInfo(_command); QString path = fileInfo.absolutePath(); - QString name = "empty.sh"; + QString name = "test.sh"; _command = QString("%1/%2").arg(path, name); #endif _pid = startTimer(_timeout); + _process->setWorkingDirectory(Storage::Scripts_Path_Name()); //FIXME: get it in the DeviceController once and send it to constructor. _process->start(_command, _arguments); }