try to fix snap path

This commit is contained in:
Andrei Yankovich 2024-01-21 12:28:21 +01:00
parent 75db0080ef
commit 0a9e41e8d9

View File

@ -20,8 +20,7 @@ LocalSocket::LocalSocket(const QString &target, QObject *ptr):
#ifdef Q_OS_LINUX #ifdef Q_OS_LINUX
if (QuasarAppUtils::PlatformUtils::isSnap()) { if (QuasarAppUtils::PlatformUtils::isSnap()) {
QDir().mkpath(QStandardPaths::writableLocation(QStandardPaths::CacheLocation)); m_target = "~/P" + target;
m_target = QStandardPaths::writableLocation(QStandardPaths::CacheLocation) + "/P" + target;
} else { } else {
m_target = "P" + target; m_target = "P" + target;
} }