From 3d1f34fb74e50ae5ace55ee6a6d1e14e36e9496e Mon Sep 17 00:00:00 2001 From: Mike Pennisi Date: Wed, 5 Jun 2024 19:12:00 -0400 Subject: [PATCH] Use `/tmp` instead --- lib/commands/serve.js | 4 ++-- .../ATDriverGenericService/ATDriverClientUnix.swift | 2 +- test/test.js | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/commands/serve.js b/lib/commands/serve.js index 853bc69..4ac1a1f 100644 --- a/lib/commands/serve.js +++ b/lib/commands/serve.js @@ -6,8 +6,8 @@ const createCommandServer = require('../create-command-server'); const createVoiceServer = require('../create-voice-server'); const WINDOWS_NAMED_PIPE = '\\\\?\\pipe\\my_pipe'; -const MACOS_SYSTEM_DIR = '/var/run/at_driver_generic'; -const MACOS_SOCKET_UNIX_PATH = '/var/run/at_driver_generic/driver.socket'; +const MACOS_SYSTEM_DIR = '/tmp/at_driver_generic'; +const MACOS_SOCKET_UNIX_PATH = '/tmp/at_driver_generic/driver.socket'; const DEFAULT_PORT = 4382; /** diff --git a/src/macos/ATDriverGenericMacOS/ATDriverGenericService/ATDriverClientUnix.swift b/src/macos/ATDriverGenericMacOS/ATDriverGenericService/ATDriverClientUnix.swift index 967cc80..f6930e0 100644 --- a/src/macos/ATDriverGenericMacOS/ATDriverGenericService/ATDriverClientUnix.swift +++ b/src/macos/ATDriverGenericMacOS/ATDriverGenericService/ATDriverClientUnix.swift @@ -25,7 +25,7 @@ class ATDriverClientUnix { } } - static let pipe = "/var/run/at_driver_generic/driver.socket" + static let pipe = "/tmp/at_driver_generic/driver.socket" func sendInitEvent() throws { try self._sendEvent(name: "lifecycle", data: "hello") diff --git a/test/test.js b/test/test.js index 2d04d5b..c7a4e0d 100644 --- a/test/test.js +++ b/test/test.js @@ -8,7 +8,7 @@ const WebSocket = require('ws'); const SOCKET_PATH = { win32: '\\\\?\\pipe\\my_pipe', - darwin: '/var/run/at_driver_generic/driver.socket', + darwin: '/tmp/at_driver_generic/driver.socket', }[process.platform]; const executable = path.join(__dirname, '..', 'bin', 'at-driver');