blob: 172cae6523aa250eb36d64e905f80f74376a612f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
use std::path::PathBuf;
pub fn zap_rs_home() -> PathBuf {
let home = std::env::var("HOME").expect("HOME not set");
PathBuf::from(home).join(".local/share/zap-rs")
}
pub fn index_dir() -> PathBuf {
zap_rs_home().join("index")
}
pub fn appimages_dir() -> PathBuf {
zap_rs_home().join("appimages")
}
|