From d17be6331268c1bc2dc5cca4d9218fc54c2a92fa Mon Sep 17 00:00:00 2001 From: antelle Date: Sat, 17 Apr 2021 17:00:14 +0200 Subject: [PATCH] keeweb-browse => keeweb-connect --- app/scripts/comp/launcher/launcher-electron.js | 4 ++-- extension/native-messaging-host/src/native-messaging-host.cpp | 4 ++-- .../native-messaging-host/test/native-messaging-host-test.mjs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/scripts/comp/launcher/launcher-electron.js b/app/scripts/comp/launcher/launcher-electron.js index c2664cfd..d80d20d5 100644 --- a/app/scripts/comp/launcher/launcher-electron.js +++ b/app/scripts/comp/launcher/launcher-electron.js @@ -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); } }, diff --git a/extension/native-messaging-host/src/native-messaging-host.cpp b/extension/native-messaging-host/src/native-messaging-host.cpp index c878fc9d..b27f7bf8 100644 --- a/extension/native-messaging-host/src/native-messaging-host.cpp +++ b/extension/native-messaging-host/src/native-messaging-host.cpp @@ -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); } diff --git a/extension/native-messaging-host/test/native-messaging-host-test.mjs b/extension/native-messaging-host/test/native-messaging-host-test.mjs index 02f8a979..ebf459b2 100644 --- a/extension/native-messaging-host/test/native-messaging-host-test.mjs +++ b/extension/native-messaging-host/test/native-messaging-host-test.mjs @@ -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'; }