[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[vidalia-svn] r3798: QProcess doesn't know how to expand "~/", so help it out. (vidalia/trunk/src/vidalia/config)
Author: edmanm
Date: 2009-05-29 02:56:11 -0400 (Fri, 29 May 2009)
New Revision: 3798
Modified:
vidalia/trunk/src/vidalia/config/TorSettings.cpp
Log:
QProcess doesn't know how to expand "~/", so help it out.
Modified: vidalia/trunk/src/vidalia/config/TorSettings.cpp
===================================================================
--- vidalia/trunk/src/vidalia/config/TorSettings.cpp 2009-05-28 11:24:53 UTC (rev 3797)
+++ vidalia/trunk/src/vidalia/config/TorSettings.cpp 2009-05-29 06:56:11 UTC (rev 3798)
@@ -17,6 +17,7 @@
#include "TorSettings.h"
#include "Vidalia.h"
#include "crypto.h"
+#include "file.h"
#if defined(Q_OS_WIN32)
#include "win32.h"
#include <QFileInfo>
@@ -382,7 +383,7 @@
/* Run Tor, tell it to hash the given password, and then wait for it to
* finish. */
- tor.start(settings.getExecutable(), args);
+ tor.start(expand_filename(settings.getExecutable()), args);
if (!tor.waitForStarted() || !tor.waitForFinished())
return QString();