mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-20 23:56:39 -04:00
Change BrowserShared socket path to group container
This commit is contained in:
parent
046cb9bd70
commit
e55a3f694b
@ -53,7 +53,18 @@ namespace BrowserShared
|
||||
#elif defined(Q_OS_WIN)
|
||||
// Windows uses named pipes
|
||||
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;
|
||||
#endif
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user