mirror of
https://github.com/bitwarden/desktop.git
synced 2024-11-24 11:55:50 +01:00
Only change socketRoot on mac
This commit is contained in:
parent
33a2243f26
commit
89c47277e8
@ -17,7 +17,9 @@ export class NativeMessagingMain {
|
||||
listen() {
|
||||
ipc.config.id = 'bitwarden';
|
||||
ipc.config.retry = 1500;
|
||||
ipc.config.socketRoot = path.join(homedir(), 'tmp');
|
||||
if (process.platform === 'darwin') {
|
||||
ipc.config.socketRoot = path.join(homedir(), 'tmp');
|
||||
}
|
||||
|
||||
ipc.serve(() => {
|
||||
ipc.server.on('message', (data: any, socket: any) => {
|
||||
|
@ -6,7 +6,9 @@ import * as path from 'path';
|
||||
ipc.config.id = 'proxy';
|
||||
ipc.config.retry = 1500;
|
||||
ipc.config.logger = console.warn; // Stdout is used for native messaging
|
||||
ipc.config.socketRoot = path.join(homedir(), 'tmp');
|
||||
if (process.platform === 'darwin') {
|
||||
ipc.config.socketRoot = path.join(homedir(), 'tmp');
|
||||
}
|
||||
|
||||
export default class IPC {
|
||||
onMessage: (message: object) => void
|
||||
|
Loading…
Reference in New Issue
Block a user