This commit is contained in:
SadlyNotSappho 2023-08-22 11:47:35 -07:00
parent 86963dcb76
commit 04893105df
1 changed files with 1 additions and 2 deletions

View File

@ -6,8 +6,7 @@ use serde::{Deserialize, Serialize};
pub fn get_home() -> String {
let home = match std::env::consts::OS {
"linux" => std::env::var("HOME").expect("how is there not a $HOME"),
"windows" => std::env::var("userprofile")
.expect("yell at me if this doesn't work please"),
"windows" => std::env::var("userprofile").expect("yell at me if this doesn't work please"),
_ => std::env::var("HOME").expect(
"if this doesn't work, you're probably on macos, which i literally cannot test on",
),