CoAgent8
    Preparing search index...

    Interface PathSystemAdapter

    interface PathSystemAdapter {
        broadcastEnvironmentChange(timeoutMs?: number): Promise<boolean>;
        isWindows(): boolean;
        ownsHome(home: string): boolean;
        readUserPath(timeoutMs?: number): Promise<WindowsRegistryPath | null>;
        writeUserPath(
            value: string,
            kind: "REG_SZ" | "REG_EXPAND_SZ",
            timeoutMs?: number,
        ): Promise<void>;
    }

    Implemented by

    Index
    • Tells open windows that the environment changed. Advisory and bounded by timeoutMs, including process start; never rejects.

      Parameters

      • OptionaltimeoutMs: number

      Returns Promise<boolean>

      Whether the change was delivered.

    • Whether this adapter's user PATH belongs to home; enable and remove refuse any other home.

      Parameters

      • home: string

      Returns boolean

    • Parameters

      • value: string
      • kind: "REG_SZ" | "REG_EXPAND_SZ"
      • OptionaltimeoutMs: number

      Returns Promise<void>