Changeset 50
- Timestamp:
- 01/10/06 15:53:12 (3 years ago)
- Files:
-
- 1 modified
-
trunk/src/control/torprocess.cpp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/control/torprocess.cpp
r49 r50 41 41 TorProcess::start(QFileInfo app, QStringList args, QString *errmsg) 42 42 { 43 QString path = app.absoluteFilePath(); 44 43 45 /* If the path doesn't point to an executable, then bail */ 44 46 if (!app.isExecutable()) { 45 47 if (errmsg) { 46 48 *errmsg = 47 QString("\"%1\" is not an executable.").arg( app.absoluteFilePath());49 QString("\"%1\" is not an executable.").arg(path); 48 50 } 49 51 return false; … … 51 53 52 54 /* Attempt to start Tor */ 53 QProcess::start( app.absoluteFilePath(), args);55 QProcess::start(path, args); 54 56 55 57 /* Wait for Tor to start. If it fails to start, report the error message and … … 58 60 if (errmsg) { 59 61 *errmsg = 60 QString("\"%1\" failed to start. [%2]").arg( app.absoluteFilePath()).arg(errorString());62 QString("\"%1\" failed to start. [%2]").arg(path).arg(errorString()); 61 63 } 62 64 return false;
