keeweb-browse => keeweb-connect

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

View File

@ -295,9 +295,9 @@ const Launcher = {
const teamId = RuntimeInfo.appleTeamId;
return `/Users/${username}/Library/Group Containers/${teamId}.keeweb/browser.sock`;
} else if (process.platform === 'win32') {
return `\\\\.\\pipe\\keeweb-browser-${username}`;
return `\\\\.\\pipe\\keeweb-connect-${username}`;
} else {
const sockFileName = `keeweb-browser-${uid}.sock`;
const sockFileName = `keeweb-connect-${uid}.sock`;
return this.joinPath(this.remoteApp().getPath('temp'), sockFileName);
}
},

View File

@ -203,13 +203,13 @@ std::string keeweb_pipe_name() {
std::cerr << "Error getting user info: " << uv_err_name(err) << std::endl;
} else {
#if defined(WIN32) || defined(_WIN32) || defined(__WIN32)
pipe_name = "\\\\.\\pipe\\keeweb-browser-" + std::string{user_info.username};
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";
#else
pipe_name = std::filesystem::temp_directory_path() /
("keeweb-browser-" + std::to_string(user_info.uid) + ".sock");
("keeweb-connect-" + std::to_string(user_info.uid) + ".sock");
#endif
uv_os_free_passwd(&user_info);
}

View File

@ -15,10 +15,10 @@ describe('KeeWeb extension native module host', function () {
sockPath = `/Users/${userInfo.username}/Library/Group Containers/3LE7JZ657W.keeweb/browser.sock`;
hostPath = 'build/keeweb-native-messaging-host';
} else if (process.platform === 'win32') {
sockPath = `\\\\.\\pipe\\keeweb-browser-${userInfo.username}`;
sockPath = `\\\\.\\pipe\\keeweb-connect-${userInfo.username}`;
hostPath = 'build\\Debug\\keeweb-native-messaging-host.exe';
} else {
sockPath = path.join(os.tmpdir(), `keeweb-browser-${userInfo.uid}.sock`);
sockPath = path.join(os.tmpdir(), `keeweb-connect-${userInfo.uid}.sock`);
hostPath = 'build/keeweb-native-messaging-host';
}