Skip to content

[BUG] Windows - file-secrets plugin stores auth in ~/.local/share (XDG, Linux-only) #209

@mynameistito

Description

@mynameistito

packages/plugins/file-secrets/src/index.ts resolves the auth file directory using the XDG convention:

path.join(process.env.HOME || process.env.USERPROFILE || "~", ".local", "share")

~/.local/share doesn't exist on Windows. The correct location is %LOCALAPPDATA% (e.g. C:\Users\name\AppData\Local).

Fix: check process.platform === "win32" and use LOCALAPPDATA / APPDATA instead.

Fixed in: packages/plugins/file-secrets/src/index.ts


Identified and fixed with AI assistance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions