Encrypted file vault path reads $HOME directly and falls back to /tmp. On Windows $HOME is normally unset (the equivalent is %USERPROFILE%) and /tmp does not exist.
Location
phantom-vault/src/lib.rs:72
Current
std::env::var("HOME").unwrap_or_else(|_| "/tmp".to_string())
Fix
Use dirs::home_dir() (already in the dep tree) or directories::ProjectDirs::from("ai", "ashlr", "phantom") for a proper per-OS config path:
- Windows:
%APPDATA%\phantom
- Linux:
~/.config/phantom
- macOS:
~/Library/Application Support/phantom
Severity
Functional gap — file vault writes to wrong location or fails outright on Windows.
Tracker: #1
Encrypted file vault path reads
$HOMEdirectly and falls back to/tmp. On Windows$HOMEis normally unset (the equivalent is%USERPROFILE%) and/tmpdoes not exist.Location
phantom-vault/src/lib.rs:72Current
Fix
Use
dirs::home_dir()(already in the dep tree) ordirectories::ProjectDirs::from("ai", "ashlr", "phantom")for a proper per-OS config path:%APPDATA%\phantom~/.config/phantom~/Library/Application Support/phantomSeverity
Functional gap — file vault writes to wrong location or fails outright on Windows.
Tracker: #1