|
|
|
|
@ -4,6 +4,7 @@
|
|
|
|
|
#include <QSize>
|
|
|
|
|
#include <QTimerEvent>
|
|
|
|
|
#include <QCoreApplication>
|
|
|
|
|
#include <QFileInfo>
|
|
|
|
|
|
|
|
|
|
#include "server.h"
|
|
|
|
|
|
|
|
|
|
@ -52,7 +53,8 @@ const QString& Server::getServerPath()
|
|
|
|
|
{
|
|
|
|
|
if (m_serverPath.isEmpty()) {
|
|
|
|
|
m_serverPath = QString::fromLocal8Bit(qgetenv("QTSCRCPY_SERVER_PATH"));
|
|
|
|
|
if (m_serverPath.isEmpty()) {
|
|
|
|
|
QFileInfo fileInfo(m_serverPath);
|
|
|
|
|
if (m_serverPath.isEmpty() || !fileInfo.isFile()) {
|
|
|
|
|
m_serverPath = QCoreApplication::applicationDirPath() + "/scrcpy-server.jar";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|