Add MacOS App Group used by Safari Web Extension

This commit is contained in:
Sebastian Livoni 2025-01-28 18:01:01 +01:00
parent ed7de52c2f
commit 8603e56e01
No known key found for this signature in database
GPG Key ID: 827A963A22F2E6B4
2 changed files with 3 additions and 6 deletions

View File

@ -4,10 +4,6 @@
<dict>
<key>com.apple.application-identifier</key>
<string>G2S7P7J672.org.keepassxc.keepassxc</string>
<key>keychain-access-groups</key>
<array>
<string>G2S7P7J672.org.keepassxc.keepassxc</string>
</array>
<key>com.apple.security.application-groups</key>
<array>
<string>G2S7P7J672.org.keepassxc.keepassxc</string>

View File

@ -56,12 +56,13 @@ namespace BrowserShared
#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";
QString subPath = homePath + "/Library/Group Containers/G2S7P7J672.org.keepassxc.KeePassXC";
// Make sure the directory exists
QDir().mkpath(subPath);
QString socketPath = subPath + serverName;
// The path will become too long therefore we must cut off serverName
QString socketPath = subPath + "KeePassXC.BrowserServer";
return socketPath;
#else // others