4
0
mirror of https://github.com/QuasarApp/Patronum.git synced 2025-05-12 15:09:35 +00:00

fix path ot pid file

This commit is contained in:
Andrei Yankovich 2021-10-26 11:25:06 +03:00
parent 09767cf3c1
commit 21e504424e

@ -35,11 +35,13 @@ QString PCommon::getPWD(const QString& customUser) const {
if (!customUser.size())
return QStandardPaths::writableLocation(QStandardPaths::AppDataLocation);
#ifdef Q_OS_LINUX
if (customUser == "root")
return "/root/.local/share/" + getServiceName();
return "/home/" + customUser + "/.local/share/" + getServiceName();
#ifdef Q_OS_LINUX
QString postfix = QCoreApplication::organizationName() + "/" + getServiceName();
if (customUser == "root")
return "/root/.local/share/" + postfix;
return "/home/" + customUser + "/.local/share/" + postfix;
#else
QuasarAppUtils::Params::log("The custom user not support for " +