mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-08-09 06:52:50 -04:00
Change BrowserShared socket path to group container
This commit is contained in:
parent
046cb9bd70
commit
e55a3f694b
1 changed files with 12 additions and 1 deletions
|
@ -53,7 +53,18 @@ namespace BrowserShared
|
||||||
#elif defined(Q_OS_WIN)
|
#elif defined(Q_OS_WIN)
|
||||||
// Windows uses named pipes
|
// Windows uses named pipes
|
||||||
return serverName + "_" + qgetenv("USERNAME");
|
return serverName + "_" + qgetenv("USERNAME");
|
||||||
#else // Q_OS_MACOS and others
|
#elif defined(Q_OS_MACOS)
|
||||||
|
// Get the home directory and append the desired subdirectory
|
||||||
|
QString homePath = QDir::homePath();
|
||||||
|
QString subPath = homePath + "/Library/Group Containers/org.keepassxc.KeePassXC";
|
||||||
|
|
||||||
|
// Make sure the directory exists
|
||||||
|
QDir().mkpath(subPath);
|
||||||
|
|
||||||
|
QString socketPath = subPath + serverName;
|
||||||
|
|
||||||
|
return socketPath;
|
||||||
|
#else // others
|
||||||
return QStandardPaths::writableLocation(QStandardPaths::TempLocation) + serverName;
|
return QStandardPaths::writableLocation(QStandardPaths::TempLocation) + serverName;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue