mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-26 23:36:59 -05:00
Merge pull request #871 from Emotyco/changed_socket_path_windows
Changed: Unified socket path across systems.
This commit is contained in:
commit
0098433242
@ -45,16 +45,11 @@ int main(int argc, char *argv[])
|
|||||||
dynamic_cast<resource_api::ResourceRouter*>(&ctrl_mod),
|
dynamic_cast<resource_api::ResourceRouter*>(&ctrl_mod),
|
||||||
&resource_api::RsControlModule::handleRequest);
|
&resource_api::RsControlModule::handleRequest);
|
||||||
|
|
||||||
#if defined(Q_OS_WIN) && defined(QT_DEBUG)
|
|
||||||
QString sockPath = "RS/";
|
|
||||||
#elif defined(Q_OS_WIN)
|
|
||||||
QString sockPath = QCoreApplication::applicationDirPath();
|
|
||||||
#else
|
|
||||||
QString sockPath = QDir::homePath() + "/.retroshare";
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
QString sockPath = QDir::homePath() + "/.retroshare";
|
||||||
sockPath.append("/libresapi.sock");
|
sockPath.append("/libresapi.sock");
|
||||||
qDebug() << "Listening on:" << sockPath;
|
qDebug() << "Listening on:" << sockPath;
|
||||||
|
|
||||||
ApiServerLocal apiServerLocal(&api, sockPath); (void) apiServerLocal;
|
ApiServerLocal apiServerLocal(&api, sockPath); (void) apiServerLocal;
|
||||||
|
|
||||||
while (!ctrl_mod.processShouldExit())
|
while (!ctrl_mod.processShouldExit())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user