initial skeleton
This commit is contained in:
parent
dc79fa2448
commit
71f89dde9c
60 changed files with 3480 additions and 0 deletions
25
crates/aim-core/src/platform/mod.rs
Normal file
25
crates/aim-core/src/platform/mod.rs
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
use std::path::{Path, PathBuf};
|
||||
|
||||
pub fn user_managed_appimages_dir(home_dir: &Path) -> PathBuf {
|
||||
home_dir.join(".local/lib/aim/appimages")
|
||||
}
|
||||
|
||||
pub fn user_applications_dir(home_dir: &Path) -> PathBuf {
|
||||
home_dir.join(".local/share/applications")
|
||||
}
|
||||
|
||||
pub fn user_icons_dir(home_dir: &Path) -> PathBuf {
|
||||
home_dir.join(".local/share/icons/hicolor/256x256/apps")
|
||||
}
|
||||
|
||||
pub fn system_managed_appimages_dir() -> PathBuf {
|
||||
PathBuf::from("/opt/aim/appimages")
|
||||
}
|
||||
|
||||
pub fn system_applications_dir() -> PathBuf {
|
||||
PathBuf::from("/usr/share/applications")
|
||||
}
|
||||
|
||||
pub fn system_icons_dir() -> PathBuf {
|
||||
PathBuf::from("/usr/share/icons/hicolor/256x256/apps")
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue