@@ -45,7 +45,7 @@ import {
4545 isSystemLaunchDaemonOwnershipError ,
4646} from "./launchd-system.js" ;
4747import { formatLine , toPosixPath , writeFormattedLines } from "./output.js" ;
48- import { resolveGatewayStateDir , resolveHomeDir } from "./paths.js" ;
48+ import { resolveDaemonHomeDir , resolveGatewayStateDir } from "./paths.js" ;
4949import { resolveGatewaySupervisorLogPaths } from "./restart-logs.js" ;
5050import { parseKeyValueOutput } from "./runtime-parse.js" ;
5151import { createGatewayLifecycleMutationReporter } from "./service-mutation.js" ;
@@ -167,7 +167,7 @@ function resolveLaunchAgentPlistPathForLabel(
167167 env : Record < string , string | undefined > ,
168168 label : string ,
169169) : string {
170- const home = toPosixPath ( resolveHomeDir ( env ) ) ;
170+ const home = toPosixPath ( resolveDaemonHomeDir ( env ) ) ;
171171 return path . posix . join ( home , "Library" , "LaunchAgents" , `${ label } .plist` ) ;
172172}
173173
@@ -1025,7 +1025,7 @@ export async function uninstallLaunchAgent({
10251025 return ;
10261026 }
10271027
1028- const home = toPosixPath ( resolveHomeDir ( env ) ) ;
1028+ const home = toPosixPath ( resolveDaemonHomeDir ( env ) ) ;
10291029 const trashDir = path . posix . join ( home , ".Trash" ) ;
10301030 const dest = path . join ( trashDir , `${ label } .plist` ) ;
10311031 try {
@@ -1338,7 +1338,7 @@ async function writeLaunchAgentPlist({
13381338 await ensureSecureDirectory ( logDir ) ;
13391339
13401340 const plistPath = resolveLaunchAgentPlistPathForLabel ( env , label ) ;
1341- const home = toPosixPath ( resolveHomeDir ( env ) ) ;
1341+ const home = toPosixPath ( resolveDaemonHomeDir ( env ) ) ;
13421342 const libraryDir = path . posix . join ( home , "Library" ) ;
13431343 await ensureSecureDirectory ( home ) ;
13441344 await ensureSecureDirectory ( libraryDir ) ;
0 commit comments