shorter socket name

This commit is contained in:
antelle 2021-04-17 17:25:14 +02:00
parent d17be63312
commit 316c14d845
No known key found for this signature in database
GPG Key ID: 63C9777AAB7C563C
2 changed files with 2 additions and 2 deletions

View File

@ -293,7 +293,7 @@ const Launcher = {
const { username, uid } = this.req('os').userInfo();
if (process.platform === 'darwin') {
const teamId = RuntimeInfo.appleTeamId;
return `/Users/${username}/Library/Group Containers/${teamId}.keeweb/browser.sock`;
return `/Users/${username}/Library/Group Containers/${teamId}.keeweb/conn.sock`;
} else if (process.platform === 'win32') {
return `\\\\.\\pipe\\keeweb-connect-${username}`;
} else {

View File

@ -206,7 +206,7 @@ std::string keeweb_pipe_name() {
pipe_name = "\\\\.\\pipe\\keeweb-connect-" + std::string{user_info.username};
#elif __APPLE__
pipe_name = "/Users/" + std::string{user_info.username} +
"/Library/Group Containers/3LE7JZ657W.keeweb/browser.sock";
"/Library/Group Containers/3LE7JZ657W.keeweb/conn.sock";
#else
pipe_name = std::filesystem::temp_directory_path() /
("keeweb-connect-" + std::to_string(user_info.uid) + ".sock");