Skip to content

cli: use dirs::home_dir() instead of $HOME in setup #13

@MasonStation

Description

@MasonStation

phantom setup's home-directory helper reads $HOME directly. On Windows $HOME is normally unset.

Location

  • phantom-cli/src/commands/setup.rs:182-184

Fix

Replace with dirs::home_dir() (already in the dependency tree via phantom-vault). Handles %USERPROFILE% automatically on Windows.

Severity

Polish — may work if the user happens to have $HOME set (e.g., under Git Bash), but unreliable.

Tracker: #1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomerswindowsWindows platform support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions