mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-24 08:41:26 -04:00
Avoid linking libretroshare in qml app and notify
Use QDir::homePath() instead of RsAccounts::ConfigDirectory() to determine libresapi socket path, this way statically linking to libretroshare is not needed and the android package size is reduced dramatically 20+MB -> 13MB At same time this solves the socket path mismatch between retroshare android service and the other android applications due to merge
This commit is contained in:
parent
4455bfa92d
commit
e83fec8d84
4 changed files with 13 additions and 11 deletions
|
@ -19,6 +19,7 @@
|
|||
#include <QCoreApplication>
|
||||
#include <QDebug>
|
||||
#include <QMetaObject>
|
||||
#include <QDir>
|
||||
|
||||
#ifdef __ANDROID__
|
||||
# include "util/androiddebug.h"
|
||||
|
@ -44,10 +45,12 @@ int main(int argc, char *argv[])
|
|||
dynamic_cast<resource_api::ResourceRouter*>(&ctrl_mod),
|
||||
&resource_api::RsControlModule::handleRequest);
|
||||
|
||||
#ifdef QT_DEBUG
|
||||
#if defined(Q_OS_WIN) && defined(QT_DEBUG)
|
||||
QString sockPath = "RS/";
|
||||
#else
|
||||
#elif defined(Q_OS_WIN)
|
||||
QString sockPath = QCoreApplication::applicationDirPath();
|
||||
#else
|
||||
QString sockPath = QDir::homePath() + "/.retroshare";
|
||||
#endif
|
||||
|
||||
sockPath.append("/libresapi.sock");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue