created linux build

This commit is contained in:
leetthewire 2021-07-05 20:46:41 +00:00
parent f852ff6dff
commit 07c7fc66d3
291 changed files with 91 additions and 2 deletions

8
client/utils.cpp Normal file → Executable file
View file

@ -68,6 +68,14 @@ QString Utils::executable(const QString& baseName, bool absPath)
return QCoreApplication::applicationDirPath() + "/" + fileName;
}
QString Utils::usrExecutable(const QString& baseName)
{
if (QFileInfo::exists("/usr/sbin/" + baseName))
return ("/usr/sbin/" + baseName);
else
return ("/usr/bin/" + baseName);
}
bool Utils::processIsRunning(const QString& fileName)
{
#ifdef Q_OS_WIN